Next.js Discord

Discord Forum

Module not found deployment error

Answered
Polish posted this in #help-forum
Open in Discord
PolishOP
I need help with this deployment error module not found. I double check , case sensitive, path and other that I can think of.
Answered by Toyger
problems in your case in file/folder names
for example first error
@/components/property/.....
but in your project folder name is Property with capital case on P, you need to fix file/folder names, and then change to same case in all paths.
View full answer

9 Replies

PolishOP
Toyger
problems in your case in file/folder names
for example first error
@/components/property/.....
but in your project folder name is Property with capital case on P, you need to fix file/folder names, and then change to same case in all paths.
Answer
it is due to you being on an OS which has case insensitive file lookup(windows) but the os running on vercel is linux and is case sensitive
you need to change file names or use proper casing
I would suggest you to use dash casing for file names
PolishOP
All good now. I found the issue, for some reason, some files didn't get to GIT, not sure why.
By I have another issue.. which is
that is a separate issue from the original question, please make a new post