Etc
Vercel 배포 중, Type error: Cannot find module 에러
c29130811
2024. 8. 11. 13:48
분명 멀쩡하게 아까까지만(?) 해도 배포했었는데, vercel에서 갑자기 Type error: Cannot find module 에러가 났다
크게 변동한건 없었고 그냥 file의 대소문자만 변동해서 push 했었는데..
ex. Vercel.tsx -> vercel.tsx
그래서 뒤져보니 깃허브에서는 수정된 내용이 반영이 안됐다는 거다..
https://vercel.com/guides/how-do-i-resolve-a-module-not-found-error
How to Resolve the 'module not found' Error
The 'module not found' error is a syntax error that appears when the static import statement cannot find the file at the declared path. Learn how to fix this error.
vercel.com
아래 명령어 입력 후
git config core.ignorecase false
git rm -r --cached .
다시 커밋해서 푸시하면 될 것이다.
728x90