I'm unable to compile my project with turbopack. It has suddenly stopped working, it just hangs or goes into an infinite loop. It just gets stuck here:
▲ Next.js 15.3.5 (Turbopack)
-
Local: http://localhost:3005
-
Environments: .env.local
✓ Starting... ✓ Compiled middleware in 129ms ✓ Ready in 1088ms ○ Compiling /[lang] ...
Webpack works perfectly fine, and I can build the project without any issues. I've tried all the suggested troubleshooting steps:
- Re-installed dependencies, deleted lock files, cache, etc.
- Upgraded to the latest Next.js (15.3.5)
- Restarted my Mac
- Checked my Tailwind config
- Changed the port (from 3002 to 3005 in this case)
My project is a monorepo and uses the App Router. There are no errors in the browser console or terminal—Turbopack just hangs at the compile step.
Any ideas on what else I can try, or is this a known issue with Turbopack in monorepos or with certain patterns?
I have the trace-turbopack file if anyone wants to see that.
Thanks for any help!
PS not sure it's related, but when running with webpack, I get a warning about using next/head but it doesn't point to a specific file and I cannot find any use of next/head in my project.