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

后端 未结 2 1645
栀梦
栀梦 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.

提交回复
热议问题