Turbopack Error: Resource path "src/app/(innerwebsite)/login/page.jsx" need to be on project filesystem "" #88648
Replies: 2 comments 1 reply
|
Hey! 👋 I ran into the same issue before. This usually happens when Turbopack cannot resolve the project path, especially with the new Next.js app folder routing. Here's how to fix it: 1️⃣ Check your folder structure Make sure your src/ folder is inside your project root, like this: my-project/ The (innerwebsite) folder is fine — it’s a route group, but the path must be inside the project root. 2️⃣ Enable appDir in next.config.js module.exports = nextConfig; 3️⃣ Clear caches Sometimes Turbopack caches wrong paths: rm -rf .next 4️⃣ Check file names and imports File name must be exactly page.jsx (casing matters) Use relative imports inside login/: import LoginForm from './LoginForm'; 5️⃣ Optional: Disable Turbopack temporarily If it still fails: next dev --turbo false This forces Webpack instead of Turbopack and usually works immediately. 💡 After doing this, your HMR should work and the error will disappear. |
Uh oh!
There was an error while loading. Please reload this page.
Turbopack version:
d1bd5b58Next.js version:
0.0.0Error message:
All reactions