I am getting this error when I am trying push my files into heroku rep.
Ive set autocrlf = false already in gitconfig but this problem is still there. i have also tr
I had similar issue where local build was working fine however when I push my branch onto heroku it would fail to build. Issue was that I had some devDependencies in my package.json which were not installed during npm install which was causing my build to fail.
If you need access to packages declared under devDependencies in a different buildpack or at runtime, then you can set NPM_CONFIG_PRODUCTION=false or YARN_PRODUCTION=false
to skip the pruning step.
Also you can move you devDependencies into dependencies...
for me deleting package-lock.json
fixed my problem,
turns out Heroku accepts only one package.json file :p
For me it started working after setting global username/email.
To set your global username/email configuration:
1. Open the command line.
2. Set your username:
git config --global user.name "FIRST_NAME LAST_NAME"
git config --global user.email "MY_NAME@example.com"
git commit -m "comment"
git push heroku master
BOOM! It worked (atleast for me)