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

后端 未结 2 1629
栀梦
栀梦 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: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
    

提交回复
热议问题