Turbopack Error: Next.js package not found #82552
Replies: 2 comments
-
Hi @tigawanna This error usually happens when Turbopack can’t find the next package in your project. 1. Next.js is not installed Check your package.json to see if next is listed under dependencies. If it’s missing, install it: npm install next react react-dom or, if you use Yarn: yarn add next react react-dom 2. Corrupted dependencies Sometimes the node_modules folder or the package-lock.json / yarn.lock file gets corrupted. Try: rm -rf node_modules package-lock.json
npm install or rm -rf node_modules yarn.lock
yarn install 3. Invalid Next.js version In your screenshot, Next.js version shows as 0.0.0, which means the package wasn’t recognized. Make sure you have a valid version in package.json, for example: "dependencies": {
"next": "14.2.5",
"react": "18.3.1",
"react-dom": "18.3.1"
} 4. Wrong command To start with Turbopack, use: next dev --turbo This only works on newer Next.js versions. |
Beta Was this translation helpful? Give feedback.
-
Sorry for this, i thought i closed it because i found the issue |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Turbopack version:
744c7ee5
Next.js version:
0.0.0
Error message:
Beta Was this translation helpful? Give feedback.
All reactions