Deploying to Heroku: Module not found (not case-sensitive issue)

后端 未结 2 1630
栀梦
栀梦 2021-01-27 13:41

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

相关标签:
2条回答
  • 2021-01-27 13:52

    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.

    0 讨论(0)
  • 2021-01-27 13:55

    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
    
    0 讨论(0)
提交回复
热议问题