Error during deployment to Vercel
Unanswered
Chinese perch posted this in #help-forum
Chinese perchOP
Hi all,
Just finished my build. Worked completely fine in dev mode. But when I tried to deploy it to Vercel. I got the error in the screenshot above. My components are being appropriately exported and imported so not entirely sure what's going on here.
Just finished my build. Worked completely fine in dev mode. But when I tried to deploy it to Vercel. I got the error in the screenshot above. My components are being appropriately exported and imported so not entirely sure what's going on here.
4 Replies
@Chinese perch Hi all,
Just finished my build. Worked completely fine in dev mode. But when I tried to deploy it to Vercel. I got the error in the screenshot above. My components are being appropriately exported and imported so not entirely sure what's going on here.
Sun bear
Did you check the file and folder names in github. I had a strange bug a few days ago that a folder was capitalized even when i didnt do it. That caused this error in my case
@Sun bear Did you check the file and folder names in github. I had a strange bug a few days ago that a folder was capitalized even when i didnt do it. That caused this error in my case
Chinese perchOP
Hey I think I've probably fixed it. Yeah even though I've pushed new code to my repository it still had it under the old file structure. Found the git rm -r --cached trick on stackoverflow and seems to work now
Also do you find you have to do ESlint - ignore during builds and typescript- ignoreBuildErrors when you're deploying?
@Chinese perch Also do you find you have to do ESlint - ignore during builds and typescript- ignoreBuildErrors when you're deploying?
Sun bear
No its better to fix the ts errors. You should get errormessahes