Metro Bundler ready.
Loading dependency graph, done.
error: bundling failed: Error: invalid value for dynamic deps behavior:
null
at getDynamicDepsBehavior (C:\Projects\react-native\test\node_modules\metro\src\JSTransformer\worker\index.js:185:13)
at postTransform (C:\Projects\react-native\test\node_modules\metro\src\JSTransformer\worker\index.js:131:26)
at Object.transformCode [as transform] (C:\Projects\react-native\test\node_modules\metro\src\JSTransformer\worker\index.js:251:17)
at execMethod (C:\Projects\react-native\test\node_modules\jest-worker\build\child.js:92:29)
at process.on (C:\Projects\react-native\test\node_modules\jest-worker\build\child.js:42:7)
at process.emit (events.js:160:13)
at emit (internal/child_process.js:790:12)
BUNDLE [android, dev] ./index.js ░░░░░░░░░░░░░░░░ 0.0% (0/1), failed.
Cleans your React Native project by purging caches and modules, and reinstalling them again.
How do I clear gradle cache in react native? To clear your gradle cache in android studio: open terminal and. run gradlew clean.
Clean and Re-buildSelect “Build” from the menu at the top in Android Studio. Click on “Clean Project” and wait. Click on “Rebuild Project” and wait.
Sounds like a bad version of metro was published: https://github.com/facebook/metro/issues/126
Tried a fresh install and things are working now. Just running "npm install metro" to update to the hotfixed version (0.24.6) should also do the trick.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With