nextron icon indicating copy to clipboard operation
nextron copied to clipboard

Page blank after reload on build

Open oscarbrehier opened this issue 2 years ago • 5 comments

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.

oscarbrehier avatar Oct 31 '22 17:10 oscarbrehier

Same Here

gitnasr avatar Dec 18 '22 11:12 gitnasr

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:

  • _app.tsx
  • _document.tsx
  • index.tsx

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

alexis-piquet avatar Mar 12 '23 03:03 alexis-piquet

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 avatar May 21 '23 15:05 codalaya

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

fix using this one

codalaya avatar May 21 '23 15:05 codalaya

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

TonyDo99 avatar May 29 '24 06:05 TonyDo99