Next.js Discord

Discord Forum

Is it just me or the HMR on 14.1.2+ sucks?

German Roughhaired Pointer posted this in #help-forum
Open in Discord
German Roughhaired PointerOP
Tried to create a quick POC app using create-next-app@latest using 14.1.3, I felt like the code change was super slow on dev mode.
Even small css(tailwind) change takes like 4 or 5 sec to compile.

And with some actual logic change it takes from 22-40+ sec on compile time and I have to hard reload the page not maintaining state.

Thought it was that version so downgraded to 14.1.2, still facing the same issue.

I don't feel this lag on 14.0.x or 14.1.x even on older NextJS version that I've used in prod 13.6.x or 12.x

I'm running on app router.
I'm on windows.

Windows 11 
Version 23H2 (OS Build 22631.3296)
AMD 5900x
32GB Ram

Code Editor: VS Code 1.87.2
NodeJS:   * 20.10.0 (Currently using 64-bit executable)
NPM: 10.2.1
"typescript": "^5"
"react": "^18",
"react-dom": "^18",
"next": "14.1.2",

3 Replies

German Roughhaired PointerOP
Not using turbopack, I'm using the default bundler, not using any experimental features.
I don't think it should take this much time
did you try deleting .next & node_modules ?