Reputation: 333
I keep encountering this problem when deploying my app. I have tried using serve-favicon but it hasn't worked.
My project can be found here (it's my first MERN stack project and it's not finished, so please don't comment on the code).
I am using this as a template for deploying MERN stack apps to Heroku.
EDIT: The problem had nothing to do with the favicon. The error displayed in the console was just the result of another thing failing to work properly. In my case, this was the connection to mongoDB Atlas. I changed my database to Heroku's mLab addon for mongoDB and everything deployed perfectly.
This error wasn't being logged on the console so I had to look at Heroku's logs to find what was wrong. See Here to learn about logging on Heroku.
Upvotes: 0
Views: 3805
Reputation: 333
The problem had nothing to do with the favicon. The error displayed in the console was just the result of another thing failing to work properly. In my case, this was the connection to mongoDB Atlas. I changed my database to Heroku's mLab addon for mongoDB and everything deployed perfectly.
This error wasn't being logged on the console so I had to look at Heroku's logs to find what was wrong. See Here to learn about logging on Heroku.
Upvotes: 1