Open RobertKoval opened 13 hours ago
I tried with different NodeJS versions, v21.7.3 and v22.11.0 works fine.
I have this same issue with a brand new project with no edits just npx create-next-app@latest buildtest
and then npm run build
fails with
❯ npm run build
> buildtest@0.1.0 build
> next build
▲ Next.js 15.0.3
Creating an optimized production build ...
Failed to compile.
./src/app/page.tsx + 1 modules
Unexpected end of JSON input
> Build failed because of webpack errors
I'm on node version v23.2.0
Link to the code that reproduces this issue
https://github.com/RobertKoval/issue_nextjs
To Reproduce
1) Create a new project using
npx create-next-app@latest
2) runnpx next build
Current vs. Expected behavior
I expected the project to compile, but instead, I encountered an error:
Provide environment information
Which area(s) are affected? (Select all that apply)
create-next-app, Developer Experience, Webpack
Which stage(s) are affected? (Select all that apply)
next build (local)
Additional context
No response