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
Metro has encountered an error: Cannot read properties of undefined (reading 'transformFie'): . . . #790
Comments
Same issue here. |
Could someone who's experiencing this please post:
This does look like we're trying to use |
npm list -a is huge, with only one possible warning in it:
No other error. |
Thanks @nabtron
I'm actually more interested in the package versions you have - my working theory is that this might be a transform bug in a recent minor dependency update, causing promise branches to execute out of order. That's partly because a cluster of recent reports against an old Metro version suggests the issue is in a recently released dependency rather than Metro itself. You could post the output to a gist if you like, or filter down to Are you still regularly seeing this issue? |
package-lock.json: https://gist.github.com/nabtron/3ab61e930e3ad997deaa54e294c3e154 |
This work for me
and i'm not downgrade my node my node i'm just install same node from |
@kidtzz so issue is with metro or openssl? |
Still facing this issue. Any update? |
@NaveenSubburaj no, i have abandoned react native due to bugs like these & lack of support and planning to move to native or flutter, lets see. |
Hi everyone, I have the same issue |
Hi!
|
Yes, this is down to incompatibility of older versions of Metro with Node 17+. Contrary to the original issue report here, I haven't seen a reproduction for Node <17. The root cause is Node 17 using OpenSSL 3 (nodejs/node#40455), which drops support for MD4 hashing, which we used until #752. Three options:
|
It works for me too! thanks |
I solved this by switching to node v16. |
facebook/react-native#35210 a. delete node_modules directory b. yarn install c. cd android; gradlew.bat clean 2. add Environment Variable facebook/metro#790 NODE_OPTIONS=--openssl-legacy-provider d. npx react-native run-android
how did that go? |
@Leleka14 xcode native is going amazing! Although it's been a year and now i have coded many apps in react-native (abandoned expo), flutter and native, i loved native the most. |
Still getting the error with React Native 0.71 on Node 18 EDIT: Weird, my metro is still .66 even on RN .71. Will look into. |
Downgraded to node v16.20.1 Still facing this issue |
Still facing this issue, reopen this |
This worked for me as well. My node version is 18.16.1 |
+1 |
This work for me
|
works for me |
Error while running react-native app on ios.
react-native version: 0.67.3
Metro has encountered an error: Cannot read properties of undefined (reading 'transformFie'): . . .
Tried changing node version to 17, 16.12, 14, etc. but no use.
Please help / guide. Thanks.
detailed error:
The text was updated successfully, but these errors were encountered: