Metro: React Native is not building since metro 0.24.5 has been released

Created on 19 Jan 2018  ยท  11Comments  ยท  Source: facebook/metro

Since version 0.24.5 has been released we have been unable to run our react-native project on iOS and Android:

 BUNDLE  [android, dev] ./index.android.js โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 0.0% (0/1), failed.

error: bundling failed: Error: invalid value for dynamic deps behavior: `null`
    at getDynamicDepsBehavior (/Users/user/Documents/app/applications/apps/product-mobile/node_modules/metro/src/JSTransformer/worker/index.js:185:13)
    at postTransform (/Users/user/Documents/app/applications/apps/product-mobile/node_modules/metro/src/JSTransformer/worker/index.js:131:26)
    at Object.transformCode [as transform] (/Users/user/Documents/app/applications/apps/product-mobile/node_modules/metro/src/JSTransformer/worker/index.js:251:17)
    at execMethod (/Users/user/Documents/app/applications/apps/product-mobile/node_modules/jest-worker/build/child.js:92:29)
    at process.on (/Users/user/Documents/app/applications/apps/product-mobile/node_modules/jest-worker/build/child.js:42:7)
    at emitTwo (events.js:125:13)
    at process.emit (events.js:213:7)
    at process.nextTick (internal/child_process.js:755:12)
    at _combinedTickCallback (internal/process/next_tick.js:95:7)

We reverted back to 0.24.4 and the app bundled as expected.

Environment:

  • "react-native": "0.52.0"
  • "react": "16.2.0"

Let me know if you need any more details.

Most helpful comment

Version v0.24.6 published! Thanks for reporting it so fast ๐Ÿ˜„

All 11 comments

Thanks for reporting! I'm looking into it

I am having the same issue. Thanks for the quick response!

Sorry folks! This has been caused because we added a new config parameter to allow dynamic requires. But this new param is not handled by RN v0.52 and makes metro fail.

I'm going to publish a v0.24.6 version to fix that asap

Version v0.24.6 published! Thanks for reporting it so fast ๐Ÿ˜„

Thank you, I found the right time, I was having this error since yesterday.

I had a similar error with 0.24.7. Moving back to 0.24.6 fixed it.

Metro Bundler ready.

Loading dependency graph...
BUNDLE [android, dev] ./index.js โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 0.0% (0/1)
BUNDLE [android, dev] ./index.js โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 0.0% (0/1)

i get this and the emulator screen shows nothing but "Loading from 10.0.2.2:8081" and nothing else...what do i do???
screenshot_1526553174

@Harish-Hk delete the app from your simulator, run git clean -xfd (this removed all .gitignore files) from your project root before running your project again.

I've had this problem in the past and cleaning the project / simulator has fixed it for me!

I'm still seeing this issue. None of the solutions above helped.
Running Mojave 10.14, Xcode 10, React Native 0.57.3

screen shot 2018-10-25 at 10 59 51 pm
screen shot 2018-10-25 at 11 00 16 pm

ENOENT: no such file or directory, scandir '/Users/sukhwindersingh/iCloud Drive (Archive)/Documents/Project/assets'
Failed building JavaScript bundle.

this is the error i am getting please help me out here.
earlier i was able ti run my same project but all of a sudden it stopped working.

https://www.heypasteit.com/clip/0IT7NR๏ปฟ

this is my code for firebase authentication

used: firebase react-navigation native-base
Screenshot 2019-09-09 at 3 48 14 PM

Hello everybody, I am a total beginner in React-native. I am facing this issue now , I stuck at BUNDLE [android, dev] ./index.js โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 0.0% (0/1) on window , and the emulator just keep on displaying loading from 10.0.2.2:8081... without displaying any thing . Please help me with this problem. I get stuck for one week already
Screenshot_1575452106

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Naturalclar picture Naturalclar  ยท  4Comments

samuela picture samuela  ยท  4Comments

MattFoley picture MattFoley  ยท  5Comments

mrousavy picture mrousavy  ยท  4Comments

cpojer picture cpojer  ยท  3Comments