You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to bundle a node application that includes bcrypt. I am having a problem bundling bcrypt. I am using esbuild because it's quick and easy, but I think that the issue exists with any bundling solution (webpack, etc.)
The README in the repo explains the repro steps, but basically if you build and then try and run the bundled app, it fails on bcrypt.js:5 where it passes in a path to package.json. For one, this would fail if I was trying to run the app in a directory lacking a package.json. But what happens in that repo is that node-pre-gyp complains that the package.json (the one for my example repo) is missing required fields:
package.json must declare these properties:
binary
Thanks!
The text was updated successfully, but these errors were encountered:
Hi,
I'm trying to bundle a node application that includes bcrypt. I am having a problem bundling bcrypt. I am using esbuild because it's quick and easy, but I think that the issue exists with any bundling solution (webpack, etc.)
I have a repro repo: https://github.com/carlgieringer/bcrypt-bundle-issue
My environment:
node v14.16.0
macOS 10.15.7
The README in the repo explains the repro steps, but basically if you build and then try and run the bundled app, it fails on bcrypt.js:5 where it passes in a path to package.json. For one, this would fail if I was trying to run the app in a directory lacking a package.json. But what happens in that repo is that node-pre-gyp complains that the package.json (the one for my example repo) is missing required fields:
Thanks!
The text was updated successfully, but these errors were encountered: