Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bcrypt relocation not working #684

Closed
adriencohen opened this issue Apr 6, 2021 · 3 comments
Closed

bcrypt relocation not working #684

adriencohen opened this issue Apr 6, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@adriencohen
Copy link
Contributor

adriencohen commented Apr 6, 2021

Hello,

It looks like even after the fix in webpack-asset-relocator-loader@1.2.3 to handle properly @mapbox/node-pre-gyp ncc is still not able to relocate bcrypt@5.0.1.

I ran some tests by building locally ncc:

ncc@82bffab1df2c8936e1151352889a73434fd45dc4 (0.28.0 tag) - bcrypt correctly relocated ✅
ncc@00cdc3f31a455dfa14c86f85c622776a31ab5ee2 (update to webpack-asset-relocator-loader@1.2.3) - bcrypt correctly relocated ✅
ncc@446fc5645141fd119c120c766e33051bb3a4935b (before fix of webpack-asset-relocator-loader) - bcrypt not relocated 🔴

But when I use the npm:@vercel/ncc@0.28.0 bcrypt is not relocated so I think there is an issue with packaged version.

@styfle
Copy link
Member

styfle commented Apr 7, 2021

Can you confirm 0.28.1 fixes the issue?

@styfle styfle added the bug Something isn't working label Apr 7, 2021
@adriencohen
Copy link
Contributor Author

adriencohen commented Apr 7, 2021

Looks good 👍

Thank you !

@eric-burel
Copy link

eric-burel commented Jan 6, 2022

Hi, any idea what could cause (node:83837) UnhandledPromiseRejectionWarning: Error: Cannot find module '/code/vulcan-next/.vn/scripts/db/lib/binding/napi-v3/bcrypt_lib.node' when running the script? I use ncc 0.30.0 and bcrypt 5.0.1

Hopefully I could get rid of bcrypt but native modules seems to have issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants