-
Notifications
You must be signed in to change notification settings - Fork 30.2k
Closed
Labels
OutputRelated to the the output configuration option.Related to the the output configuration option.bugIssue was opened via the bug report template.Issue was opened via the bug report template.locked
Description
Link to the code that reproduces this issue
https://github.com/Charismara/nextjs-output-pnpm-issue
To Reproduce
- Create a new Project
- Install dependencies with pnpm
- Add
output: "standalone"to your nextjs config file - Build Project with pnpm
- --> Run into the following error:
Failed to copy traced files for C:\Users\****\IdeaProjects\pnpm-issue\.next\server\pages\_document.js Error: EPERM: operation not permitted, symlink 'C:\Users\****\IdeaProjects\pnpm-issue\node_modules\.pnpm\[email protected][email protected][email protected][email protected]\node_modules\next' -> 'C:\Users\****\IdeaProjects\pnpm-issue\.next\standalone\node_modules\next'
Current vs. Expected behavior
An error occurs which prevents the project from building.
The Project builds just fine without the output: standalone option set.
Provide environment information
Operating System:
Platform: win32
Arch: x64
Version: Windows 11 Pro
Available memory (MB): 32548
Available CPU cores: 32
Binaries:
Node: 20.14.0
npm: N/A
Yarn: N/A
pnpm: 9.7.0
Relevant Packages:
next: 14.2.8 // Latest available version is detected (14.2.8).
eslint-config-next: 14.2.8
react: 18.3.1
react-dom: 18.3.1
typescript: 5.5.4
Next.js Config:
output: standaloneWhich area(s) are affected? (Select all that apply)
Output (export/standalone)
Which stage(s) are affected? (Select all that apply)
next build (local)
Additional context
No response
Metadata
Metadata
Assignees
Labels
OutputRelated to the the output configuration option.Related to the the output configuration option.bugIssue was opened via the bug report template.Issue was opened via the bug report template.locked