-
-
Notifications
You must be signed in to change notification settings - Fork 821
facebook/metro 0.82.0 introduced breaking change that breaks react-native Unable to resolve module node:crypto
#524
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
Comments
hi @efstathiosntonas this is not very actionable without having a reproducer. Could you create one?
|
hi @vonovak, I’ve already mentioned the issue to metro maintainers, let’s see the outcome. I understand that this originated from metro and not nanoid, just wanted to bring this to the attention of nanoid maintainers. About reproducer, just create a bare rn project with resolution |
Try the solution from #515 |
Metro maintainer here - Metro will now resolve
"exports": {
".": {
"browser": "./index.browser.js",
"default": "./index.js"
},
"./non-secure": "./non-secure/index.js",
"./package.json": "./package.json"
}, Based on the legacy React Native configures Metro to assert the "exports": {
".": {
"browser": "./index.browser.js",
+ "react-native": "./index.browser.js",
"default": "./index.js"
},
"./non-secure": "./non-secure/index.js",
"./package.json": "./package.json"
}, |
Thanks. Fixed 27ee2c4 It will take a while for me to release because I need also to release a fix for 3.x. |
Amazing, thanks @ai! |
Fixed on Thank you guys for the fast response in this one! ❤ |
Hi,
[email protected]
has introduced this breaking change:unstable_enablePackageExports
by default facebook/metro#1448The result after running bundler:
solution for now is to add
unstable_enablePackageExports: false
in metro config.metro.config.js
The text was updated successfully, but these errors were encountered: