create-next-app
fails when running global next build
, but not npm run build
#76103
Labels
create-next-app
Related to our CLI tool for quickly starting a new Next.js application.
Link to the code that reproduces this issue
https://github.com/kylejrp/create-next-app-repro
To Reproduce
I have a video of me following the reproduction steps here:
https://youtu.be/WTWXyvQVq_A
This issue occurs when running the globally installed
next build
on a fresh install. It does not reproduce when runningnpm run build
. This reproduces on my main development machine, but for clarity I reproduced it here on a fresh virtual machine.Set-ExecutionPolicy RemoteSigned
to allownpx.ps1
to be run in the next stepnpx create-next-app my-app
and accept all the default optionscd my-app
npm install -g next
next build
Current vs. Expected behavior
Expected: The build should successfully complete.
Actual: The build fails with the following error:
Provide environment information
Which area(s) are affected? (Select all that apply)
create-next-app
Which stage(s) are affected? (Select all that apply)
next build (local)
Additional context
Some related issues, most closed due to not being reproducible:
The text was updated successfully, but these errors were encountered: