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
Pretty much an identical situation as #261 with the same symptom and solution except that webpack is not involved. In this case argon2 is imported into a private library to handle multiple kinds of hashes. That library, in turn, is imported into other applications.
to webpack.config.js isn't an option to fix the issue.
Possible Workarounds
Aside from an actual fix into this codebase...
Impose webpack where it isn't otherwise needed
Make a custom-patched version of argon2 with the code change we know works
Use the argon2-ffi library instead - which is less-frequently maintained and doesn't appear to support argon2id mode.
Steps to reproduce
Create a module that imports argon2 without webpack
Import that new module into an application without webpack
Try running the application
Expected behaviour
It should presumably work.
Actual behaviour
Error: Cannot find module '/[....]/node_modules/argon2/package.json'
at webpackEmptyContext (/[....]/packages/server/.webpack/service/dist/src/webpack:/[....]/node_modules/node-pre-gyp/lib sync:2:1)
at Object.module.exports.../../node_modules/node-pre-gyp/lib/pre-binding.js.exports.find (/[....]/packages/server/.webpack/service/dist/src/webpack:/[....]/node_modules/node-pre-gyp/lib/pre-binding.js:20:23)
at Object.<anonymous> (/[....]/packages/server/.webpack/service/dist/src/webpack:/[....]/node_modules/argon2/argon2.js:8:1)
at Object.../../node_modules/argon2/argon2.js (/[....]/packages/server/.webpack/service/dist/src/serverless.js:31908:30)
at __webpack_require__ (/[....]/packages/server/.webpack/service/dist/src/webpack:/webpack/bootstrap:19:1)
Environment
Operating system: OSX Catalina 10.15.7
Node version: 16.9.1
Compiler version:
The text was updated successfully, but these errors were encountered:
Pretty much an identical situation as #261 with the same symptom and solution except that webpack is not involved. In this case argon2 is imported into a private library to handle multiple kinds of hashes. That library, in turn, is imported into other applications.
Similarity to #261
As with #261 replacing
with
Fixes the issue.
Difference from #261
Unlike #261 webpack isn't involoved so adding
to
webpack.config.js
isn't an option to fix the issue.Possible Workarounds
Aside from an actual fix into this codebase...
Steps to reproduce
Expected behaviour
It should presumably work.
Actual behaviour
Environment
Operating system: OSX Catalina 10.15.7
Node version: 16.9.1
Compiler version:
The text was updated successfully, but these errors were encountered: