Turbopack Error: Failed to write app endpoint /page #94493
Replies: 1 comment
-
|
hey @mezo2000tiger2-sudo , ran into this exact stack trace a while back in a monorepo. the Next.js version: 0.0.0 is a dead giveaway that turbopack literally can't find the next package. it's not a code issue, it's node_modules or resolution. first thing, check if next actually exists:
if it's missing or the folder is empty, that's it. if it's a symlink into some workspace and that workspace isn't built yet, same thing. either build the dep first or just install next directly in the app. try the nuclear option—fixes this 80% of the time: if you're on pnpm, turbopack hates its strict resolution sometimes. in .npmrc add: then also check if you have multiple versions of next floating around: the stack trace bottoms out at get_next_server_import_map. that function literally tries to load next internals and fails cause the package doesn't resolve. so it's not your app code—it's the runtime environment. if still broken, run the dev server with the local binary directly instead of
i've seen global npx cache cause weird shadows. let us know if it helps, happy to dig deeper. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Turbopack version:
da605e0cNext.js version:
0.0.0Error message:
Beta Was this translation helpful? Give feedback.
All reactions