Bug Description:
When running pnpm dev
on a Next.js project using the App Router and Turbopack, the dev server crashes immediately if Cursor is open. This issue disappears when Cursor is closed and the server is restarted.
So i need each time close cursor, to test my app: I close cursor and then run pnpm dev in terminal and it working, until I open Cursor, itโs crashes immediately without any errors(probably when cursor starting doing tsconfig initializing)
Steps to Reproduce:
- Open a Next.js 14+ project in Cursor (App Router + Turbopack).
- In terminal, run
pnpm dev
(ornext dev
). - Observe: server starts compiling, then crashes and exits.
- Close Cursor, run the same command โ works fine.
Environment Info:
OS: WSL
Possibly related to Cursorโs internal TypeScript watcher or syncing logic conflicting with Turbopack.