Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
oriharel opened this issue Nov 7, 2017 · 8 comments
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@oriharel
Copy link
Contributor

oriharel commented Nov 7, 2017

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

@oriharel oriharel changed the title error: bundling failed: Error of metro-bundler Bundling index.js error: bundling failed: Error of metro-bundler Nov 7, 2017
@oriharel oriharel 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 Nov 7, 2017
@react-native-bot
Copy link
Collaborator

@facebook-github-bot no-template

@facebook-github-bot
Copy link
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 ContributeWhat to Expect from Maintainers

@facebook-github-bot facebook-github-bot added the Ran Commands One of our bots successfully processed a command. label Nov 7, 2017
@chocky335
Copy link

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

@rpavlovs
Copy link

Same issue. I only have index.js.

@hmenzagh
Copy link

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

@fpyang
Copy link

fpyang commented Dec 5, 2017

I fix the issue by following @chocky335's comment

@arapocket
Copy link

arapocket commented Jan 29, 2018

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

@jrumbut
Copy link

jrumbut commented 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!

@facebook facebook locked as resolved and limited conversation to collaborators Nov 7, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Nov 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

9 participants