Turbopack Error: create symlink to ../../../../../auth/node_modules/@prisma/client #87462
Replies: 1 comment 1 reply
-
|
I'm not sure if this is really the problem or the solution, but it worked for me. Here's my approach - please test it: This error occurs because Windows requires special permissions to create symbolic links, which Turbopack needs for certain npm packages (like Solution: Enable Windows Developer Mode Method 1: Via Settings (Recommended)
Method 2: Via PowerShell (Administrator)
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" -Name "AllowDevelopmentWithoutDevLicense" -Value 1
Method 3: Via Registry (Manual)
After enabling Developer Mode, Turbopack should work without symlink errors. Alternative: Use WebpackIf you prefer not to enable Developer Mode, you can use Webpack instead: "dev": "next dev --webpack"VerificationAfter enabling Developer Mode, test if it works: npm run devIf Turbopack starts without errors, the fix was successful. Note: This is a known Windows limitation, not a Turbopack bug. The Windows Developer Mode is the recommended solution for development environments. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Turbopack version:
ea1df5f2Next.js version:
0.0.0Error message:
Beta Was this translation helpful? Give feedback.
All reactions