Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: unknown option '-o' #467

Closed
msamgan opened this issue Jun 11, 2024 · 16 comments
Closed

error: unknown option '-o' #467

msamgan opened this issue Jun 11, 2024 · 16 comments
Labels
bug Something isn't working

Comments

@msamgan
Copy link

msamgan commented Jun 11, 2024

error: unknown option '-o'

Cannot build electron packages:
Error: Command failed with exit code 1: next export -o /Users/msamgan/Projects/digilink/mns_offline/app /Users/msamgan/Projects/digilink/mns_offline/renderer

I am facing this. Can anyone help me in this.

it was working like a few days ago.

@msamgan
Copy link
Author

msamgan commented Jun 11, 2024

moreover ⨯
next export has been removed in favor of 'output: export' in next.config.js.
Learn more: https://nextjs.org/docs/app/building-your-application/deploying/static-exports

please can we make an update in the package regarding this.

@msamgan
Copy link
Author

msamgan commented Jun 11, 2024

the issue is in next 14. it works with next 13.

@arabovs
Copy link

arabovs commented Jun 13, 2024

Here's the actual nextjs error:
"next export" does not work with App Router. Please use "output: export" in next.config.js https://nextjs.org/docs/advanced-features/static-html-export error Command failed with exit code 1.

@saltyshiomix
Copy link
Owner

Hi, @msamgan , sorry for late reply.

I just released nextron v9.0.0 and v8.24.0.
So could you try these versions?

@saltyshiomix
Copy link
Owner

@arabovs

Sorry for inconvenience. Could you try nextron v9 or v8.24.0?

@saltyshiomix saltyshiomix added the bug Something isn't working label Jun 16, 2024
@arabovs
Copy link

arabovs commented Jun 16, 2024

Thanks @saltyshiomix , will test today

@msamgan
Copy link
Author

msamgan commented Jun 16, 2024

ok. is there any special migration guide, anything special to take care while updating ?

@saltyshiomix
Copy link
Owner

@msamgan

Sorry for inconvenience!

Please follow this(update next.config.js):
#442 (comment)

@msamgan
Copy link
Author

msamgan commented Jun 16, 2024

thanks, i will make the appropriate updates and will get back to you.

@saltyshiomix
Copy link
Owner

@msamgan

Thank you very much, too!

Feel free to mention me.

@saltyshiomix
Copy link
Owner

@msamgan
Any updates? If you have troubles, feel free to ask me :)

@saltyshiomix
Copy link
Owner

If you have any troubles, feel free to open the issue :)

@alieldeba
Copy link

@saltyshiomix
I am working with next.js app router and when I write "output": "export" in next.config.js the middleware.ts file does not work and when I remove the "output": "export" the build does not work.

what should I do ?

@msamgan
Copy link
Author

msamgan commented Aug 25, 2024

try changing version back to 13, that worked for me.

@alieldeba
Copy link

To all who is struggling with nextron just read this article it will fix all your problems.
https://www.saybackend.com/blog/03-electron-nextjs-ssr

You will go back to nextjs 14 after this blog @msamgan

@msamgan
Copy link
Author

msamgan commented Aug 26, 2024

thanks @alieldeba. I will have a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants