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

chanon-mike

chanon-mike

Posted on January 9, 2024

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…

πŸ’– πŸ’ͺ πŸ™… 🚩
chanon-mike
chanon-mike

Posted on January 9, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related