Skip to content

[TurbopackInternalError] Build fails on Windows with Prisma symlink error (os error 1314) #87692

@Shubhamkahar196

Description

@Shubhamkahar196

Link to the code that reproduces this issue

https://github.com/Shubhamkahar196/muzi

To Reproduce

  1. Use Windows 11
  2. Create a Next.js app
  3. Enable Turbopack
  4. Install Prisma (@prisma/client)
  5. 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

Metadata

Metadata

Assignees

Labels

RuntimeRelated to Node.js or Edge Runtime with Next.js.TurbopackRelated to Turbopack with Next.js.locked

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions