How to fix "Module not found" error when deploying NextJS app to Netlify

I have found the solution to my own problem.
It’s related to Windows case insensitive whereas Netlify uses Linux servers which are!
So, I had to rename all my lowercased named components to uppercase and it worked.

These articles have helped me.

I hope it will help someone in the future.