DEV Community

chanon-mike
chanon-mike

Posted on

Vercel Module not found: Can't resolve 'xxx'

Work in local but not working in vercel

Reason

My exact error Module not found: Can't resolve '@/client/client'
This happened after I change file name from Client to client.

It seems like git is case-insensitive and the changes are not pushed.

Fix

git rm -r --cached .
git add --all .
git commit -a -m "versioning untracked files"
git push
Enter fullscreen mode Exit fullscreen mode

References

I have changed a few files name by de-capitalize the first letter, as in Name.jpg to name.jpg. Git does not recognize this changes and I had to delete the files and upload them again. Is there a way that Git can be case-sensitive when checking for changes in file…

Top comments (0)