Build issue in vercel
Answered
Sloth bear posted this in #help-forum
Sloth bearOP
when i try to host my appplication in vercel it show me this error. but in local host it work fine. i imported my bitbucket reopo to vercel for auto build.. hope someone can help me.. thank you
Answered by joulev
Hmm, maybe this is due to casing https://nextjs-faq.com/module-not-found-due-to-case-sensitivity
8 Replies
@Sloth bear when i try to host my appplication in vercel it show me this error. but in local host it work fine. i imported my bitbucket reopo to vercel for auto build.. hope someone can help me.. thank you
Try these steps:
1. Clone the git repo to a different local repository
2. Run npm install (or yarn or pnpm etc depending on the package manager)
3. Manually build the app with npm run build (again, change the command depending on the package manager)
Does the build succeed?
1. Clone the git repo to a different local repository
2. Run npm install (or yarn or pnpm etc depending on the package manager)
3. Manually build the app with npm run build (again, change the command depending on the package manager)
Does the build succeed?
@joulev Try these steps:
1. Clone the git repo to a different local repository
2. Run npm install (or yarn or pnpm etc depending on the package manager)
3. Manually build the app with npm run build (again, change the command depending on the package manager)
Does the build succeed?
Sloth bearOP
yes.. it succeed without errors
@Sloth bear yes.. it succeed without errors
Hmm, maybe this is due to casing https://nextjs-faq.com/module-not-found-due-to-case-sensitivity
Answer
Check the casing in the git repo, is it definitely pages/index and not something like Pages/index?
Sloth bearOP
i checked that.. but its correct
@Sloth bear i checked that.. but its correct
No, as in check on the git repo on Bitbucket
Windows is case insensitive so you shouldn’t trust the casing vscode displays
Sloth bearOP
Thank you so much.. it worked.. u save my day 
