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
You have to include the dependency in you package.json so it will install it when you deploy.
$ npm install babel-cli -S
Than you have to change you start
command to be like:
"start": "babel-node index.js"
See here for more info on deploying babel on heroku.com.
Warning: using babel-node is not recommended in production