-
-
Notifications
You must be signed in to change notification settings - Fork 815
Open
Labels
Description
What is the problem?
won't build
Paste all your error logs here:
yarn run v1.22.22
$ blitz build
Loaded env from /private/tmp/blitz_3/.env.local
Loaded env from /private/tmp/blitz_3/.env
{
"errno": -2,
"code": "ENOENT",
"syscall": "open",
"path": "/private/tmp/blitz_3/node_modules/.pnpm/next@16.0.0-beta.0_@babel+core@7.28.4_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/on-recoverable-error.js"
}
✔ Routes manifest was successfully generated
⚠ Invalid next.config.js options detected:
⚠ Unrecognized key(s) in object: 'turbo' at "experimental"
⚠ See more info here: https://nextjs.org/docs/messages/invalid-next-config
⚠ `experimental.typedRoutes` has been moved to `typedRoutes`. Please update your next.config.js file accordingly.
▲ Next.js 16.0.0-beta.0 (Turbopack)
- Environments: .env.local, .env
- Experiments (use with caution):
? turbo (invalid experimental key)
✓ typedRoutes
Creating an optimized production build ...
> Build error occurred
Error: Turbopack build failed with 14 errors:
./node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js:3:12
Module not found: Can't resolve 'child_process'
1 | 'use strict';
2 |
> 3 | const cp = require('child_process');
| ^^^^^^^^^^^^^^^^^^^^^^^^
4 | const parse = require('./lib/parse');
5 | const enoent = require('./lib/enoent');
Paste all relevant code snippets here:
PASTE_HERE (leave the ``` marks)
What are detailed steps to reproduce this?
- create a new blitz project and update to next 16
npx @next/codemod@canary upgrade beta
Run blitz -v and paste the output here:
Blitz version: 3.0.2 (local)
macOS Sequoia | darwin-x64 | Node: v22.20.0
Package manager: pnpm
System:
OS: macOS 15.7.1
CPU: (16) x64 Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
Memory: 69.22 MB / 32.00 GB
Shell: 4.1.2 - /usr/local/bin/fish
Binaries:
Node: 22.20.0 - /usr/local/bin/node
Yarn: 1.22.22 - ~/Library/pnpm/yarn
npm: 10.9.3 - /usr/local/bin/npm
npmPackages:
@blitzjs/auth: 3.0.2 => 3.0.2
@blitzjs/next: 3.0.2 => 3.0.2
@blitzjs/rpc: 3.0.2 => 3.0.2
@prisma/client: 5.4.2 => 5.4.2
blitz: 3.0.2 => 3.0.2
next: 16.0.0-beta.0 => 16.0.0-beta.0
prisma: 5.4.2 => 5.4.2
react: 19.2.0 => 19.2.0
react-dom: 19.2.0 => 19.2.0
typescript: ^5 => 5.9.3
Please include below any other applicable logs and screenshots that show your problem:
No response