Closed j-d-carmichael closed 4 years ago
the same error node 12
This is a workaround which then creates another problem.
Instead of being left with a single file you are left with 1 packed file and a node_modules folder which is then a pain to deploy, much easier to ship a single 3-5mb file than 1 file plus 60-100mb+ node_modules folder :/
Also seeing the same issue here.
+1
same here
So far @proficiat 's answer worked for me. Apparently bycryptjs works just as well bcrypt but eliminates the problem I had with "aws-sdk". You do not have to change any code. Simply run an npm install bcryptjs --save
and change where you have var bycrypt = require("bycrypt")
to var bcrypt = require("bycryptjs")
. From my experince they have the same exact functions just somehow works better than regular bycrypt
.
I am not excluding the node_modules from the packed build so as to ensure easier and pain free CI/D.
What did you expect to happen? webpack build the packed file without complaint
Which version of nodejs and OS? LinuxMint 18lts Node 10 lts