Skip to content

Tag: heroku

heroku build failed on deployment

I am trying to host my React application on heroku but I keep getting the following errors: 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. Answer I had to update the peer dependency for credit-card-i…

Node.js: fs.existsSync doesn’t work on Heroku

I have a Heroku app using Node.js and Express, and I want to determine whether or not a certain file exists. However, it seems like the file is never found. I have the following path: The directory structure of my project looks like this: I am doing something wrong here? Or is this a Heroku issue? Answer Ok, …