Vercel error - Module not found: Can't resolve '@/wrapper/clientWrapper'
Answered
Transvaal lion posted this in #help-forum
Transvaal lionOP
in fact the code works fine locally and I tried npm run build and it works just fine
Answered by Giant panda
Make sure the casing is correct and the file is not committed as
clientwrapper instead of clientWrapper.11 Replies
Giant panda
Make sure the casing is correct and the file is not committed as
clientwrapper instead of clientWrapper.Answer
Transvaal lionOP
Giant panda
Check the capitalization in your git repo online.
Chances are it's different.
For example when you create a file as
clientwrapper on Windows and then rename it to clientWrapper it will still be committed as the former since it's still the same file.Transvaal lionOP
oh shot
you are right
how to fix that?
Giant panda
Something like
git mv clientwrapper.tsx clientWrapper.tsx --force.