saltyshiomix / nextron

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

Page blank after reload on build #291

Open oscarbrehier opened 2 years ago

oscarbrehier commented 2 years ago

After reloading a page on the build app the page is blank. Another issue has been made on this very subject but the workaround doesn't seem clear.

gitnasr commented 1 year ago

Same Here

alexis-piquet commented 1 year ago

Hey @oscarbrehier, have you solved your issue? If not could you give me a screenshot of your application structure? I think you have missed something with nextJs usage.

Bassically you will have those files unde the directory pages:

Could you give me a copy of your background.ts/js file, which one start your application.

codalaya commented 1 year ago

We are also Facing the same issue but found that after navigating to other page it starts showing the same but on before it works well

fixed the issue using useEffect in _app.tsx file for better help take a look at close issue section already mentioned there

codalaya commented 1 year ago

https://github.com/saltyshiomix/nextron/issues/241#issuecomment-1239401532

fix using this one

TonyDo99 commented 6 months ago

Try to yarn build to build a new bundle app directory and run start script again.