saltyshiomix / nextron

⚡ Next.js + Electron ⚡
https://npm.im/nextron
MIT License
3.69k stars 215 forks source link

error: unknown option '-o' #467

Open msamgan opened 3 weeks ago

msamgan commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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

arabovs commented 2 weeks ago

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 commented 2 weeks ago

Hi, @msamgan , sorry for late reply.

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

saltyshiomix commented 2 weeks ago

@arabovs

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

arabovs commented 2 weeks ago

Thanks @saltyshiomix , will test today

msamgan commented 2 weeks ago

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

saltyshiomix commented 2 weeks ago

@msamgan

Sorry for inconvenience!

Please follow this(update next.config.js): https://github.com/saltyshiomix/nextron/issues/442#issuecomment-2171149218

msamgan commented 2 weeks ago

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

saltyshiomix commented 2 weeks ago

@msamgan

Thank you very much, too!

Feel free to mention me.

saltyshiomix commented 4 days ago

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