Turbopack Error: Next.js package not found #82698
Replies: 1 comment
-
This issue usually occurs when more than one lock file is detected. You can check the reference here: #78192 (comment). In addition, the latest Next.js canary releases now indicate how many lock files are present and specify which one will be used. OR: This error happens because the Next.js package is missing or not installed correctly. How to fix it: 1. Install Next.js and React npm install next react react-dom or with Yarn: yarn add next react react-dom 2. Check your package.json Make sure it includes: "dependencies": {
"next": "14.x",
"react": "18.x",
"react-dom": "18.x"
} 3. Clear cache and reinstall rm -rf node_modules .next package-lock.json
npm install 4. Run in the correct folder Ensure you are in the project root where 5. Update Next.js if needed npm install next@canary In short: Reinstall Next.js in your project root and clear cache. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Turbopack version:
f9e98b9c
Error message:
Beta Was this translation helpful? Give feedback.
All reactions