Next.js Discord

Discord Forum

Vercel error - Module not found: Can't resolve '@/wrapper/clientWrapper'

Answered
Transvaal lion posted this in #help-forum
Open in Discord
Transvaal lionOP
in fact the code works fine locally and I tried npm run build and it works just fine
Answered by Asian black bear
Make sure the casing is correct and the file is not committed as clientwrapper instead of clientWrapper.
View full answer

11 Replies

Asian black bear
Make sure the casing is correct and the file is not committed as clientwrapper instead of clientWrapper.
Answer
Transvaal lionOP
Asian black bear
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?
Asian black bear
Something like git mv clientwrapper.tsx clientWrapper.tsx --force.