Skip to content

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

Closed

Description

@oriharel

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

Activity

  1. changed the title [-]error: bundling failed: Error of metro-bundler[/-] [+]Bundling `index.js` error: bundling failed: Error of metro-bundler[/+] on Nov 7, 2017
  2. changed the title [-]Bundling `index.js` error: bundling failed: Error of metro-bundler[/-] [+]Upgrade to 0.50.1 - Bundling `index.js` error: bundling failed: Error of metro-bundler[/+] on Nov 7, 2017
  3. react-native-bot commented on Nov 7, 2017

    @react-native-bot
    Collaborator
  4. facebook-github-bot commented on Nov 7, 2017

    @facebook-github-bot
    Contributor

    Hey @oriharel, thanks for posting this! It looks like your issue is missing some required information. Can you please add all the details specified in the Issue Template? This is necessary for people to be able to understand and reproduce your issue. I am going to close this, but please feel free to open a new issue with the additional information provided. Thanks!

    How to Contribute • What to Expect from Maintainers

  5. chocky335 commented on Nov 9, 2017

    @chocky335

    @oriharel You should compile your index.android.js & index.ios.js to index.js

  6. rpavlovs commented on Nov 29, 2017

    @rpavlovs

    Same issue. I only have index.js.

  7. hmenzagh commented on Nov 30, 2017

    @hmenzagh

    Same here, I'm sure there is a good reason but I don't get it

  8. fpyang commented on Dec 5, 2017

    @fpyang

    I fix the issue by following @chocky335's comment

  9. arapocket commented on Jan 29, 2018

    @arapocket

    Same issue even after changing index.ios.js to index.js

  10. jrumbut commented on Mar 12, 2018

    @jrumbut

    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!

  11. locked as resolved and limited conversation to collaborators on Nov 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions