Link to the code that reproduces this issue
https://github.com/Shubhamkahar196/muzi
To Reproduce
- Use Windows 11
- Create a Next.js app
- Enable Turbopack
- Install Prisma (
@prisma/client)
- Run
npm run dev or npm run build
Current vs. Expected behavior
The application should start and build successfully without crashing.
Turbopack crashes and writes a panic log.
Build error:
create symlink to ../../../node_modules/@prisma/client
Caused by: A required privilege is not held by the client (os error 1314)
Provide environment information
OS: Windows 11 Pro (x64)
Node.js: v22.x
Next.js: 16.1.0
React: 19.x
Package Manager: npm
Bundler: Turbopack
Which area(s) are affected? (Select all that apply)
Turbopack, Runtime
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local)
Additional context
- Running terminal as Administrator sometimes avoids the issue
- Disabling Turbopack resolves the problem
- Panic logs are written to AppData\Local\Temp\next-panic-*.log
- This appears related to Windows symlink permission handling
Link to the code that reproduces this issue
https://github.com/Shubhamkahar196/muzi
To Reproduce
@prisma/client)npm run devornpm run buildCurrent vs. Expected behavior
The application should start and build successfully without crashing.
Turbopack crashes and writes a panic log.
Build error:
create symlink to ../../../node_modules/@prisma/client
Caused by: A required privilege is not held by the client (os error 1314)
Provide environment information
Which area(s) are affected? (Select all that apply)
Turbopack, Runtime
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local)
Additional context