I've been developing a NextJS app locally without issue but have hit issues when deploying to Vercel. Specifically, in the Vercel build, I'm hitting this error:
./src/app/dashboard/page.tsx Module not found: Can't resolve '../../components/Chart'
The relative path is valid and has no issue routing in development. I had previously been using the @ alias, again without issue locally, but decided to use a relative import to see if it'd resolve – clearly it has not.
FWIW, this is my directory structure:
/project-root /src /app /dashboard page.tsx /components Chart.tsx next.config.mjs package.jsonAnyone else run into similar issues with imports working locally, but breaking on Vercel?