I\'m trying to deploy an app that was created with create-react-app. The app works both as npm start and npm run build locally, but gives a module not found e
I have found the answer:
It WAS a case-sensitive issue. The problem is that I didn't know that GIT is not looking for case-sensitive changes in the file.
While I was debugging I cleaned up the document and capitalized one file, so that everything is consistent. My project-tree showed a changed file but the git I was pushing was still the one with a small letter.
Just been stung by this same issue. Mac filesystem and git apparently not case sensitive, I had to run the following on each controversial file and folder:
git mv foldername tempname && git mv tempname folderName