NextJS dev script not reloading browser
Unanswered
Madeiran sardinella posted this in #help-forum
Madeiran sardinellaOP
I've created a new app router project and using the
next dev script but when I make a change in app/page.tsx it will re-compile but wont automatically show the updated changes on my browser (chrome) until I manually reload the page. Can I not do this in the app directory or is this a bug in version 13.5.1?17 Replies
Asiatic Lion
I think it is a bug in 13.5.1, I am also started to face this issue along with some more issues
Madeiran sardinellaOP
@Asiatic Lion Are you using pnpm or tailwindcss in your project? I think I might know the cause
Asiatic Lion
@Madeiran sardinella Actually no, I think for me it is related to me using bun and wsl not watching files
@Asiatic Lion <@298098755985473537> Actually no, I think for me it is related to me using bun and wsl not watching files
Madeiran sardinellaOP
I've nailed it down, it's to do with the
next.config.jsIf I remove
ContentSecurityPolicy the hot code reloading works fineAsiatic Lion
Ahhhh interesting
Madeiran sardinellaOP
Do you have this by any chance in your config as well?
Asiatic Lion
I am checking rn
Well rip mine is jut empty
Madeiran sardinellaOP
wellll thats great
Just by me removing that from my config it works for me
Do you think your issue is tied to using bun?
Asiatic Lion
But I think my problem is just using wsl cause on my mac when i run it is fine so could be just because the beta state with bun and turbo
Madeiran sardinellaOP
Could be
Asiatic Lion
Ye but thanks for helping out
Madeiran sardinellaOP
Oh well I tried np