Metro has encountered an error: Cannot read properties of undefined (reading 'transformFie'): . . .
See original GitHub issueError 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:
Metro has encountered an error: Cannot read properties of undefined (reading 'transformFile'): node_modules/metro/src/Bundler.js (48:30)
RCTFatal
__28-[RCTCxxBridge handleError:]_block_invoke
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_main_queue_callback_4CF
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
__CFRunLoopRun
CFRunLoopRunSpecific
GSEventRunModal
-[UIApplication _run]
UIApplicationMain
main
start_sim
0x0
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:15 (3 by maintainers)
Top Results From Across the Web
Cannot read properties of undefined (reading 'transformFile ...
Ran into the same issue with Node.js 17.0.0. To solve it, I downgraded to version 14.18.1, deleted node_modules and reinstalled.
Read more >Cannot read properties of undefined (reading 'transformFile')
Copied! Metro has encountered an error: TypeError: Cannot read properties of undefined (reading 'transformFile') ...
Read more >Metro has encountered an error: cannot read property of ...
I got error : Metro has encountered an error: cannot read property of undefined (reading 'transformfile') at bundler.transformfile... and then I ...
Read more >Error referencing code I can't find? Bundler.js - Reddit
Metro has encountered an error : Cannot read properties of undefined (reading 'transformFile'): /Users/[my name]/Desktop/[project ...
Read more >Metro Has Encountered an error: Cannot read properties of ...
Coding example for the question METRO BUNDLER ERROR: Metro Has Encountered an error: Cannot read properties of undefined(reading 'transformfile')-node.js.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.
This work for me
export NODE_OPTIONS=--openssl-legacy-provider
and i’m not downgrade my node
my node
17.7.1
i’m just install same node from
package.json => dependencies => node
on folder project react-native