Turbopack Error: Next.js package not found #82996
Replies: 1 comment
-
You’re hitting a known compatibility gap: Turbopack doesn’t support Yarn Plug-n-Play (PnP). That’s why it can’t “find” the Practical alternatives (that keep Turbopack on)Pick any one of these—no need to use
# from your app workspace
YARN_NODE_LINKER=node-modules yarn install
yarn dev --turbo Yarn allows overriding settings via env vars, so you don’t need a
# npm
rm -rf node_modules .pnp.* .yarn/cache
npm i
npm run dev -- --turbo
# pnpm
rm -rf node_modules .pnp.* .yarn/cache
pnpm i
pnpm dev --turbo (If you’re in a monorepo, run these in the app workspace so
# in apps/your-next-app/.yarnrc.yml
nodeLinker: node-modules This keeps PnP elsewhere while making this workspace Turbopack-compatible. Quick health checks (avoid common gotchas)
About the “Next.js version: 0.0.0”That printout is a known logging quirk seen alongside canary Turbopack builds; it doesn’t necessarily reflect your installed Bottom line: There’s no supported way to run Turbopack + Yarn PnP today. Use node_modules linking via a temporary env var, a workspace-local |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Turbopack version:
v15.4.2-canary.54-9-gff756b2c7
Next.js version:
0.0.0
Error message:
Note : Both yarnrc.yml and yarn dev --turbo=false are working. are there any alternatives to these two approaches?
Use: next js 15 and node 20
Beta Was this translation helpful? Give feedback.
All reactions