BUG: running next build twice with 'mode: standalone' causes build error (Windows Only) #75560
Labels
Module Resolution
Module resolution (CJS / ESM, module resolving).
Output
Related to the the output configuration option.
Link to the code that reproduces this issue
https://github.com/pippinmole/nextjs-broken-repo
To Reproduce
npx create-next-app -e with-docker
(or any repository withmode: standalone
defined in next.config.ts)cd [app-name]
pnpm install
pnpm run build
pnpm run build
againCurrent vs. Expected behavior
Current Behavior
Receive the following error on 2nd build:
Provide environment information
Which area(s) are affected? (Select all that apply)
Module Resolution, create-next-app
Which stage(s) are affected? (Select all that apply)
next build (local)
Additional context
I've tested on both
latest
andcanary
, and on multiple windows machines.The text was updated successfully, but these errors were encountered: