ethereum-boilerplate / ethereum-react-native-boilerplate

The ultimate full-stack Ethereum React Native Dapp Boilerplate which gives you maximum flexibility and speed. Feel free to fork and contribute. Although this repo is called "Ethereum Boilerplate" it works with any EVM system! Happy BUIDL!👷‍♂️
MIT License
543 stars 285 forks source link

Metro has encountered an error #51

Open dFohlen opened 2 years ago

dFohlen commented 2 years ago

After building and launching the app

npx react-native run-ios
info Found Xcode workspace "EthereumRNBoilerplate.xcworkspace"
info Launching iPhone 11 (iOS 15.5)
info Building (using "xcodebuild -workspace EthereumRNBoilerplate.xcworkspace -configuration Debug -scheme EthereumRNBoilerplate -destination id=988CD20E-E499-4E69-9DF6-D7AD307C983A")
...
success Successfully built the app
...
info Launching "org.reactjs.native.EthereumRNBoilerplate"
success Successfully launched the app on the simulator

the following error occurs:

Metro has encountered an error: Cannot read properties of undefined (reading 'transformFile'): /projects/ethereum-react-native-boilerplate/node_modules/metro/src/Bundler.js (91:34)

  89 |       // TODO: Remove this ugly hack!
  90 |       yield _this3._depGraphPromise;
> 91 |       return _this3._transformer.transformFile(filePath, transformOptions);
     |                                  ^
  92 |     })();
  93 |   }
  94 | }

RCTFatal
__28-[RCTCxxBridge handleError:]_block_invoke
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_main_queue_drain
_dispatch_main_queue_callback_4CF
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
__CFRunLoopRun
CFRunLoopRunSpecific
GSEventRunModal
-[UIApplication _run]
UIApplicationMain
main
start_sim
0x0

System

macOs: 12.3.1 (21E258) node --version v16.15.0 (LTS) pod --version 1.11.3

Any idea?