Turbopack Error: Next.js package not found #82521
Replies: 2 comments 2 replies
-
This error means that Turbopack couldn’t locate the Next.js package in your project. Next.js version: 0.0.0 → This usually means it’s not installed or not properly resolved. Error: Next.js package not found → Turbopack is trying to load Next.js but can’t find it in node_modules or the project dependencies. How to fix it:
npm list next or yarn list next If it’s missing, install it: npm install next react react-dom or yarn add next react react-dom
"dependencies": {
"next": "14.x.x", // or your desired version
"react": "18.x.x",
"react-dom": "18.x.x"
}
rm -rf node_modules package-lock.json # or yarn.lock
npm install (For Yarn: yarn install)
next dev --turbo
This usually happens when:
|
Beta Was this translation helpful? Give feedback.
-
Thanks @victormoni and @icyJoseph for the clarification. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Turbopack version:
91e5b6b8
Next.js version:
0.0.0
Error message:
Beta Was this translation helpful? Give feedback.
All reactions