Turbopack Error: Failed to write app endpoint /page #92406
Replies: 1 comment
-
|
Hey joy! That error usually means Turbopack cannot resolve the local next package for the app it is trying to run, and the Next.js version: 0.0.0 line is a strong clue that it is not seeing a normal installed Next.js dependency. GitHub discussions and issues show this exact Turbopack failure pattern, including Failed to write app endpoint /page and Next.js package not found. Most often, one of these is the cause: next is missing from that app’s package.json or not installed in node_modules. Next.js expects the package to be installed locally for the app. Do these checks in order: npm ls next orpnpm why next oryarn why next If that does not show a proper installed version for the app, install it in the app itself: npm install next react react-dom or in pnpm: pnpm add next react react-dom Then make sure your package.json has something like: { Also check that you are starting the app from the correct folder: pwd If this is a monorepo, run the dev command from the actual Next app directory, not the repo root, unless your workspace script is explicitly targeting that app. Reports on GitHub show this error happening in monorepo setups when Turbopack resolves from the wrong project root. Then do a clean reinstall: rm -rf node_modules .next package-lock.json pnpm-lock.yaml yarn.lock If you use pnpm, the equivalent is: rm -rf node_modules .next If it still fails, try without Turbopack to confirm whether this is specifically a Turbopack resolution issue: next dev Turbopack is built into Next.js for dev, but Turbopack-specific issues are tracked separately and this exact message appears in Turbopack reports. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Turbopack version:
dc98c04fNext.js version:
0.0.0Error message:
Beta Was this translation helpful? Give feedback.
All reactions