-
Notifications
You must be signed in to change notification settings - Fork 24.1k
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
npm starts
hangs on 'Loading dependency graph, done.'
#16798
Comments
I have the same issue here :( |
Me too |
I got the same problem, anyone suggested me any solution |
Having the same Problem!!! |
same problem |
why for 30 days no one care lol, btw I am using |
solved this by not bothering with npm start but using yarn start instead |
same issue |
actually realize its NOT hanging, its running, you just need to run the simulator also in the root level lololol |
same issue with me |
@adamchenwei What exactly to do ? Can you elaborate. I am new to React Native. |
something similar to what is been said in this tutorial https://developer.telerik.com/topics/mobile-development/launch-android-emulators-ios-simulators-command-line/ |
@adamchenwei so, what is next? now running two windows: the terminal and the iOS emulator. that, the wise man, the councils were over? |
in terminal in root of the project: |
@goodok21 something similar to |
@adamchenwei something similar to lol what? |
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. |
@ervinne13 's answer did the trick for me |
I have same issue: "Looking for JS files in |
Also having this issue |
react-native init MyApp or ‘react-native run-android’ |
try to disable remote JS Debugging |
I deleted |
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. |
Same thing happened to me. (v0.53.3) |
Same issue here too. Tried removing/reinstalling watchman, the watchmen watch-del-all, removing node_modules and npm i again, rebooting macos. It started failing when I tried installing a dependency (npm), I removed/reverted that code but I can never run my app any more... Everyone has different solutions to the issue, but none worked for me |
Make sure in Wifi is Turned on in Android & iOS emulator |
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 |
I have the same issue, and I'm using Windows 10, so I can't run the iOS emulator |
I don't know you can run the app in a iOS emulator from Windows, usually is not possible. |
Make sure localhost is included as an exception in NSAppTransportSecurity in Info.plist file of the iOS project.
|
if you've tried everything but still not worked , reboot your computer |
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 🎉 |
I recommend use Yarn instead of npm. |
To echo samcorcos delete the node_modules folder and npm i worked for me |
wait does that mean it doesn't work with npm start? |
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 |
same issue hangs on even in absolutely new sample (react-360 init test) |
Same issue here |
Just reinstall Watchman |
Same issue here |
Any updates on this? |
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. |
that's not solving, that a work around using the ios simulator |
Basically, from what I see, this happens after ejecting or building your iOS Correct me if I'm wrong. |
Was facing the same issue, just run it worked for me :) |
@adamchenwei |
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 |
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 |
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 solved it for me: https://www.youtube.com/watch?v=Z_JH9_ZMj-M |
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
The text was updated successfully, but these errors were encountered: