question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Metro has encountered an error: Cannot read properties of undefined (reading 'transformFie'): . . .

See original GitHub issue

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.

Screenshot 2022-03-13 at 7 42 31 PM

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:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:15 (3 by maintainers)

github_iconTop GitHub Comments

15reactions
nabtroncommented, Apr 5, 2022

@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.

5reactions
kidtzzcommented, Mar 21, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found