When I run heroku local or when I just do npm start locally, my app builds and runs fine. However when I deploy to heroku, the app crashes saying it ca
heroku local
npm start
I got the same issue, but I think set NPM_CONFIG_PRODUCTION=false to install devDependencies will be better. I used below command:
NPM_CONFIG_PRODUCTION=false
devDependencies
heroku config:set NPM_CONFIG_PRODUCTION=false