Turbopack Error: Next.js package not found #85150
Replies: 2 comments 1 reply
-
|
I think Turbopack can’t resolve next in your app. The log shows “Next.js version: 0.0.0 / Next.js package not found”, which means there’s no next package in the app’s node_modules (often happens in monorepos or after a broken install) hmm try ( pick 1 your tool) yarn pnpm (monorepo tip) Make sure apps//package.json has: "dependencies": { "next": "...", "react": "...", "react-dom": "..." } Also check You’re running dev from the app folder that has package.json (not the parent). No lockfile mismatch (delete and reinstall as above). If it still fails, run npx next info and share the output + your package.json to confirm next is properly listed. This error goes away as soon as the app can resolve a real next version (e.g., 14/15) in its dependencies. |
Beta Was this translation helpful? Give feedback.
-
|
아니요 그 문제가 아닙니다.
저의 개발환경은 yarn berry pnp 기능을 이용하고있으면 package.json script에
next dev --turbopack 또는 next build --turbopack
이것을 하면 제가 겪은 에러가 발생합니다
하지만 --turbopack 을 제거하면 되긴하지만 turbopack을 사용하면서 pnp 기능을 사용할 수는 없는걸까요 ?
…-----Original Message-----
From: ***@***.***>
To: ***@***.***>;
Cc: ***@***.***>; ***@***.***>;
Sent: 2025-10-21 (화) 13:53:32 (GMT+09:00)
Subject: Re: [vercel/next.js] Turbopack Error: Next.js package not found (Discussion #85150)
I think Turbopack can’t resolve next in your app. The log shows “Next.js version: 0.0.0 / Next.js package not found”, which means there’s no next package in the app’s node_modules (often happens in monorepos or after a broken install)
hmm try ( pick 1 your tool)
npm
#bash
rm -rf node_modules package-lock.json .next
npm i ***@***.*** ***@***.*** ***@***.***
npm run dev
yarn
#bash
rm -rf node_modules .next
yarn add next react react-dom
yarn dev
pnpm (monorepo tip)
#bash
run from the APP package, not the workspace root
pnpm add next react react-dom --filter ./apps/
pnpm -C ./apps/ dev
Make sure apps//package.json has:
"dependencies": { "next": "...", "react": "...", "react-dom": "..." }
Also check
You’re running dev from the app folder that has package.json (not the parent).
No lockfile mismatch (delete and reinstall as above).
If it still fails, run npx next info and share the output + your package.json to confirm next is properly listed.
This error goes away as soon as the app can resolve a real next version (e.g., 14/15) in its dependencies.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Turbopack version:
v15.5.5-2-g92bbbb1beNext.js version:
0.0.0Error message:
Beta Was this translation helpful? Give feedback.
All reactions