next.js: Dev compiling is stuck
Verify canary release
- I verified that the issue exists in the latest Next.js canary release
Provide environment information
Operating System:
Platform: win32
Arch: x64
Version: Windows 10 Pro
Binaries:
Node: 18.15.0
npm: N/A
Yarn: N/A
pnpm: N/A
Relevant packages:
next: 13.2.4
eslint-config-next: 13.2.4
react: 18.2.0
react-dom: 18.2.0
warn - Latest canary version not detected, detected: "13.2.4", newest: "13.2.5-canary.26".
Please try the latest canary version (`npm install next@canary`) to confirm the issue still exists before creating a new issue.
Read more - https://nextjs.org/docs/messages/opening-an-issue
Which area(s) of Next.js are affected? (leave empty if unsure)
App directory (appDir: true)
Link to the code that reproduces this issue
.
To Reproduce

Describe the Bug
in enabled app directory next js app, if i start development mode, compiler is stuck (npm run dev). Showing message: wait - compiling /page (client and server)… . Sometime works, sometimes doesn’t work.
Expected Behavior
Only it’s work
Which browser are you using? (if relevant)
Chrome latest
How are you deploying your application? (if relevant)
next start
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 4
- Comments: 30 (4 by maintainers)
i’m having this error too!. seems almost everyone is having this same error. is there a sure fix?
I found that we need to open http://localhost:3000/ it in any of the browser for the rest of the compilation to work.
please try ot out and close this issue if it got resolved.
So this is what’s working for me now. I’ve added
--turboflag toscripts.devinpackage.json.So far
npm run buildis still not compiling on my computer but at least it’s working in the Bitbucket pipelines. Would be perfect if I would be able to build it locally as well.Having issue with Next.js
14.2.3as well. I don’t have Tailwind or Turbo. A restart of the server sometimes fixes it, but there’s no guarantee. I am on macOS Sonoma, in Apple Silicon, if that matters.same problems with 14.1.0/14.1.1 and latest canary compilation hangs when I try to access any app-router based page (typescript 5.3.3)
In my experience, starting
http://localhost:3000/, or your port, is necessary for Next.js to finish compilingmy problem was tailwind config.
having the same issue -
"next": "^14.1.4"withnext@canaryinstalledTo solve this issue, just install latest version 13.2.5-canary.27. Type like this in terminal -
npm install next@13.2.5-canary.27that’s it.He is using that version already, try installing latest canary version …27 will probably resolve.
For me it was
"next": "canary"that was causing a new similar bug just now.Reverting to
"next": "13.2.4"fixed it for me.I’m going to close this issue as there hasn’t been new reports with actionable traces and some people figured out it was other tools in use causing slowdowns.
Same issue here using next 14.2.3 and tailwind 3.4.3, even turbo doesn’t fixes it
Yes, it is related to CSS.