fullstack-apollo-express-postgresql-boilerplate
fullstack-apollo-express-postgresql-boilerplate copied to clipboard
Cannot deploy to Heroku: Bcrypt 3.X.X
If anyone runs into this problem as I did today with Bcrypt while deploying to Heroku, this may help you.
Locally I am using Node version 10.11.0, but because I haven't specified anything else in the package.json file, Heroku took a default Node version 8.XX.XX for its own build. When using Bcrypt 3.0.2 and Node 8.XX.XX it didn't work. Then I set it explicitly the Node version for Heroku in the package.json file. It worked:
{
"name": "my-app",
"version": "1.0.0",
"description": "",
"engines": {
"node": "10.11.0"
},
...
}
If anyone is running into this issue, just leave a quick comment here so that I know that this is still relevant.