React app runs locally, crashes when on Heroku error code=H10

前端 未结 5 1627
醉酒成梦
醉酒成梦 2020-12-16 18:26

The app runs fine after an \'npm start\' in windows, but when I pull from github into Heroku I just get an error.

package.json:

{
  \"name\": \"tic         


        
5条回答
  •  粉色の甜心
    2020-12-16 18:55

    Heroku doesnt install devdependencies by default:. https://devcenter.heroku.com/articles/nodejs-support. Either set your react-scripts module to always install or turn off production mode on Heroku.

提交回复
热议问题