Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up`npm starts` hangs on 'Loading dependency graph, done.' #16798
Comments
This comment has been minimized.
This comment has been minimized.
I have the same issue here :( |
This comment has been minimized.
This comment has been minimized.
Me too |
This comment has been minimized.
This comment has been minimized.
I got the same problem, anyone suggested me any solution |
This comment has been minimized.
This comment has been minimized.
Having the same Problem!!! |
This comment has been minimized.
This comment has been minimized.
same problem |
This comment has been minimized.
This comment has been minimized.
why for 30 days no one care lol, btw I am using |
This comment has been minimized.
This comment has been minimized.
solved this by not bothering with npm start but using yarn start instead |
This comment has been minimized.
This comment has been minimized.
same issue |
This comment has been minimized.
This comment has been minimized.
actually realize its NOT hanging, its running, you just need to run the simulator also in the root level lololol |
This comment has been minimized.
This comment has been minimized.
same issue with me |
This comment has been minimized.
This comment has been minimized.
@adamchenwei What exactly to do ? Can you elaborate. I am new to React Native. |
This comment has been minimized.
This comment has been minimized.
something similar to what is been said in this tutorial https://developer.telerik.com/topics/mobile-development/launch-android-emulators-ios-simulators-command-line/ |
This comment has been minimized.
This comment has been minimized.
@adamchenwei so, what is next? now running two windows: the terminal and the iOS emulator. that, the wise man, the councils were over? |
This comment has been minimized.
This comment has been minimized.
in terminal in root of the project: |
This comment has been minimized.
This comment has been minimized.
@goodok21 something similar to |
This comment has been minimized.
This comment has been minimized.
@adamchenwei something similar to lol what? |
This comment has been minimized.
This comment has been minimized.
sorry, what I meant is that you should be able to run this command in your root, so your simulator can be initiated,and your project gets to load into the simulator. React Native does NOT produce a browser version testable app (so far I know), ReactXP does though, but, that's another story. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@ervinne13 's answer did the trick for me |
This comment has been minimized.
This comment has been minimized.
I have same issue: "Looking for JS files in |
This comment has been minimized.
This comment has been minimized.
Also having this issue |
This comment has been minimized.
This comment has been minimized.
react-native init MyApp or ‘react-native run-android’ |
This comment has been minimized.
This comment has been minimized.
try to disable remote JS Debugging |
This comment has been minimized.
This comment has been minimized.
I deleted |
This comment has been minimized.
This comment has been minimized.
Thanks for posting this! It looks like you may not be using the latest version of React Native, v0.53.0, released on January 2018. Can you make sure this issue can still be reproduced in the latest version? I am going to close this, but please feel free to open a new issue if you are able to confirm that this is still a problem in v0.53.0 or newer. |
This comment has been minimized.
This comment has been minimized.
Same thing happened to me. (v0.53.3) |
This comment has been minimized.
This comment has been minimized.
Make sure in Wifi is Turned on in Android & iOS emulator |
This comment has been minimized.
This comment has been minimized.
I've did all the things that you describe before, and nothing happened. For now, is not an option for me stop my project, so I run |
This comment has been minimized.
This comment has been minimized.
I have the same issue, and I'm using Windows 10, so I can't run the iOS emulator |
This comment has been minimized.
This comment has been minimized.
I don't know you can run the app in a iOS emulator from Windows, usually is not possible. |
This comment has been minimized.
This comment has been minimized.
Make sure localhost is included as an exception in NSAppTransportSecurity in Info.plist file of the iOS project.
|
This comment has been minimized.
This comment has been minimized.
if you've tried everything but still not worked , reboot your computer |
This comment has been minimized.
This comment has been minimized.
Had same problem, finally when tried to start it on the real device realised that I need to update my iOS version:
Matching versions of XCode and iOS did the job |
This comment has been minimized.
This comment has been minimized.
I recommend use Yarn instead of npm. |
This comment has been minimized.
This comment has been minimized.
To echo samcorcos delete the node_modules folder and npm i worked for me |
This comment has been minimized.
This comment has been minimized.
wait does that mean it doesn't work with npm start? |
This comment has been minimized.
This comment has been minimized.
None of the above fixes worked for me, but I noticed on my android device there was actually an error message to the effect of |
This comment has been minimized.
This comment has been minimized.
same issue hangs on even in absolutely new sample (react-360 init test) |
This comment has been minimized.
This comment has been minimized.
Same issue here |
This comment has been minimized.
This comment has been minimized.
Just reinstall Watchman |
This comment has been minimized.
This comment has been minimized.
Same issue here |
This comment has been minimized.
This comment has been minimized.
Any updates on this? |
This comment has been minimized.
This comment has been minimized.
I also had the same problem. After ejecting a project on React Native, I typed "npm start" and it said "loading dependency graph, done" and stayed like that. But after typing "npm run ios" instead of "npm start" my problem was solved. iOS simulator and metro bundler run successfully. |
This comment has been minimized.
This comment has been minimized.
that's not solving, that a work around using the ios simulator |
This comment has been minimized.
This comment has been minimized.
Basically, from what I see, this happens after ejecting or building your iOS Correct me if I'm wrong. |
This comment has been minimized.
This comment has been minimized.
Was facing the same issue, just run it worked for me :) |
This comment has been minimized.
This comment has been minimized.
@adamchenwei |
This comment has been minimized.
This comment has been minimized.
Leaving this here for future self if working on a react app with windows subsystem for linux (wsl). So you can't run BUT YOU CAN Build the app with android studio deploy it to your emulator or phone then run The Message means ... THE SERVER IS RUNNING! Everything is good you just need to make sure adb is running in windows and
Then you can run your app. (Also if you get a blank white screen in the app on your phone just kill the app and do the shake to reload thing. You'll know its working when the app finally makes a request to the react-native server on your laptop) But here is my ask to the react native team. Can ya pls have a better server is ready message lol? P.S one more note. react-native seems to require watchman to run. otherwise
minus the the only way I could consistently get that working on wsl is
Because it often hangs and you need to know if it has done that. only way to tell is to try kill the watchman process and restart it... if you can't... you have to restart your computer! YAY ( there is some weird file system watcher bug the wsl guys haven't nailed down yet) but these incantations work if you try them hard enough |
This comment has been minimized.
This comment has been minimized.
Weird. I had the same issue when running on device and on emulator. I got it resolved by double tapping 'r' while on the emulator. Doesn't really seem like a reasonable fix (not sure why the |
This comment has been minimized.
This comment has been minimized.
If you're getting this loading error while running 'react-native run-ios' or building through xcode then try 'react-native run-android' after connecting an android device to your pc. |
This comment has been minimized.
This comment has been minimized.
This solved it for me: https://www.youtube.com/watch?v=Z_JH9_ZMj-M |
This comment has been minimized.
This comment has been minimized.
okay so it is because when you create or start a server it changes its ip first you have to confirm the ip address of your system and then put it into the in app dev setting host address |
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
Environment:
OS: macOS Sierra 10.12.6
Node: 8.9.1
Yarn: Not Found
npm: 5.5.1
Watchman: 4.9.0
Xcode: Xcode 9.1 Build version 9B55
Android Studio: 2.3 AI-162.3871768
Packages: (wanted => installed)
react: 16.0.0 => 16.0.0
react-native: 0.50.3 => 0.50.3
Steps to Reproduce
(Write your steps here:)
react-native init MyApp
cd MyApp
npm start
Expected Behavior
Actual Behavior