Skip to content
Advertisement

heroku build failed on deployment

I am trying to host my React application on heroku but I keep getting the following errors:

JavaScript

I have tried to do both --legacy-peer-deps and npm install --force but my build keeps getting failed. Is there a way to fix this recurrent problem.

Advertisement

Answer

I had to update the peer dependency for credit-card-input library in the package-lock.json file to be compatible with my version of react and this solves my problem. I’m not sure if this is the best way but it solves the issue for me.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement