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.

Upgrade to 0.50.1 - Bundling `index.js` error: bundling failed: Error of metro-bundler

See original GitHub issue

Because of issue #16737 I had to do a workaround (which I’m still not sure works) of saving a backup copy of the pre-upgrade xcodeproj file and pasting it again after upgrading. Now the project loads on XCode, but I can’t run the app. I get this error in the packager:

Loading dependency graph, done.
Bundling `index.js`  [development, non-minified]  0.0% (0/1), failed.
error: bundling failed: Error
    at DependencyGraph.getAbsolutePath (/Users/oriharel/oriApp/anoo/anooClient/node_modules/metro-bundler/src/node-haste/DependencyGraph.js:322:11)
    at DependencyGraph.getDependencies (/Users/oriharel/oriApp/anoo/anooClient/node_modules/metro-bundler/src/node-haste/DependencyGraph.js:300:4465)
    at /Users/oriharel/oriApp/anoo/anooClient/node_modules/metro-bundler/src/Resolver/index.js:135:29
    at Generator.next (<anonymous>)
    at step (/Users/oriharel/oriApp/anoo/anooClient/node_modules/metro-bundler/src/Resolver/index.js:13:830)
    at /Users/oriharel/oriApp/anoo/anooClient/node_modules/metro-bundler/src/Resolver/index.js:13:1060
    at Promise (<anonymous>)
    at /Users/oriharel/oriApp/anoo/anooClient/node_modules/metro-bundler/src/Resolver/index.js:13:741
    at Resolver.getDependencies (/Users/oriharel/oriApp/anoo/anooClient/node_modules/metro-bundler/src/Resolver/index.js:151:46)
    at /Users/oriharel/oriApp/anoo/anooClient/node_modules/metro-bundler/src/Bundler/index.js:660:39

Any help?

Thanks

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
rpavlovscommented, Nov 29, 2017

Same issue. I only have index.js.

1reaction
jrumbutcommented, Mar 12, 2018

My project had an edited AppDelegate.m file and I needed to change the line that looked like (though in my case not exactly like)

jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];

to reflect the change to index.js instead of index.ios.js. Hope that helps someone!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Metro bundler - Expo Documentation
This will show you an interactive breakdown of what makes up your JavaScript bundle. Using this, you can find large packages that you...
Read more >
react-native, bundling failed - Stack Overflow
First close your JavaScript bundler (Metro bundler in my case) and restart the application. This will create fresh dependency graph.
Read more >
[Metro Bundler] Maximum call stack size exceeded (when ...
Actual Behavior. The bundling fails with a stack overflow. There's no clear indication what is causing the behavior because there's no stack ...
Read more >
Metro Bundler Crashing - ADocLib
I'm accustomed to Metro Bundler opening up in a new window as soon as I type ... when upgrading to 0.50.1 #16689 The...
Read more >
expo starting metro bundler | The AI Search Engine You Control
React Native using Expo : Error: Metro Bundler process exited with code 1 ... npx expo start and npx expo export to bundle...
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