fullstack-apollo-express-postgresql-boilerplate icon indicating copy to clipboard operation
fullstack-apollo-express-postgresql-boilerplate copied to clipboard

Cannot deploy to Heroku: Bcrypt 3.X.X

Open rwieruch opened this issue 7 years ago • 1 comments

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"
  },
  ...
}

rwieruch avatar Oct 25 '18 15:10 rwieruch

If anyone is running into this issue, just leave a quick comment here so that I know that this is still relevant.

rwieruch avatar Jan 16 '19 01:01 rwieruch