Next.js App Router: Persistent "Module not found" Error Despite Correct Path Alias/Relative Path Setup #78364
Unanswered
Oasis11217AI
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
We need help understanding why module resolution is failing in our Next.js App Router project when importing a module (src/lib/firebase/firebaseConfig.ts) into a component (src/components/AuthForm.tsx). Both path aliases (@/lib/...) configured in tsconfig.json and standard relative paths (../lib/...) result in a "Module not found" error, despite the file structure appearing correct and standard troubleshooting steps (cache clearing, restarts, dependency reinstall) having been performed. We are seeking insights into potential configuration issues, known bugs, or alternative approaches for module resolution in this context.
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions