Next.js Discord

Discord Forum

Build issue in vercel

Answered
Sloth bear posted this in #help-forum
Open in Discord
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

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?
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 :aww: