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

前端 未结 5 1630
醉酒成梦
醉酒成梦 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 19:07

    I had the same problem, but the solution above did not work for my react app in Heroku. I have updated the build pack to create-react-app, and it worked for me.

    heroku buildpacks:set mars/create-react-app

提交回复
热议问题