Fast refresh (hot module replacement) does not work in NextJS 9.4.1.
Steps to reproduce the behavior, please provide code snippets or a repository:
The page in the browser is updated to reflect the changes.
Nothing happens, there is no update. Even on refreshing the page. There is never any HMR related console logs in the browser too.
There are also no new app logs since ready - started server on http://localhost:3000.
Please provide a complete reproduction, just followed the steps to reproduce and it works fine. Note that we also have end to end tests for the exact behavior described.
Yeah sure. What exactly do you need for a complete reproduction?
Are you running this within a docker container or similar?
No, I'm just following the steps on the NextJS web site, as in the reproduction steps above (npm init next-app).
by
- Build the app
- Run the app (loaded in Chrome 81)
Do you mean you are running
next build && next start
or
next dev
?
Build the app = npm run build
Run the app = npm start
I have not modified the build scripts from their defaults when the app is generated.
Ok I've just realised my mistake. I'm running the production build, which should not have HMR turned on. So silly. Sorry about this folks!
Most helpful comment
Ok I've just realised my mistake. I'm running the production build, which should not have HMR turned on. So silly. Sorry about this folks!