Module Not Found
Used in this guide:Next.js 15.3.4
Vercel
Error:
ERROR: Module not found
When Vercel gives a "Module not found" error during the build process, it means that the build environment (Vercel's server) cannot locate the file that your code is trying to import.
When this type of errors happens, the path of the missing module is always provided, go to the file location in your project and ensure that:
- If the file on the server is named myComponent.tsx, Vercel will fail to find it if your code tries to import import MyComponent from './MyComponent.tsx';. So check case sensitivity in your imports.
- The import path is correct and no warning.
Good Reads
Incorrect Path Aliases
If you are using path aliases in your tsconfig.json (like the @/ in your provided code example), ensure they are correctly configured and pointing to the right directory.