-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
"Module not found" in latest release (5.1.7) #46
Comments
|
Yes, bundler is webpack 5, and it requires to add fallback: vm: require.resolve("vm-browserify"). |
Unfortunately webpack 5 decided to stop being a working node core module bundler by default. You'll have to manually configure a bunch of replacements. https://web3auth.io/docs/troubleshooting/webpack-issues#react-create-react-app has an example config that may prove useful. Specifically, the readable-stream issue is that |
but guys, 5.1.7 causes problems in live projects, when 5.1.6 was perfectly worknig. Isn't it a reason to revert this commit? |
@VasylBoyko again, unfortunately, sometimes bugfixes (which this one was) can still break people (obligatory xkcd 1172). i can't conceive of an application, including a RN one, where you wouldn't need to configure webpack and/or metro to properly and implicitly handle node globals and core modules, so I continue to be surprised people run into this. |
Seeing that you folks downgraded asn1.js one full major down to keep supporting Node 4 when this thing was EOL'd 6.5 years ago and the oldest supported Node LTS is 18, considering this ends up transitively breaking a ton of Webpack 5 / Vite builds, really puzzles me. Why break everyone's builds just for the sake of a Node version no-one uses anymore, especially in terms of bundling? |
Can't build the app anymore after your last release:
Module not found: Error: Can't resolve 'vm' in '~/app/node_modules/asn1.js/lib/asn1'
@ ./node_modules/asn1.js/lib/asn1.js 5:14-42
@ ./node_modules/parse-asn1/asn1.js 6:11-29
@ ./node_modules/parse-asn1/index.js 3:11-28
@ ./node_modules/browserify-sign/browser/sign.js 9:16-37
@ ./node_modules/browserify-sign/browser/index.js 7:11-28
@ ./node_modules/crypto-browserify/index.js 39:11-37
Looks like problem is here: f230870
The text was updated successfully, but these errors were encountered: