React-native get stuck at Dependency Graph

2020-06-30 11:24发布

I try to start with react-native, I've installed everything and got to phase where I have RSoD on my phone which is telling me to run server. When i run react-native start lot of things runs, but then it gets stuck at <END> Building Dependency Graph and I have no idea what to do with it. So, how can I make it continue?

2楼-- · 2020-06-30 11:29

One reason the "Building Dependency Graph" step might hang may be due to that there is a (Chrome) debugger session running from a previous session or another project. One way to fix that is to completely quit out of Xcode, your terminal, and Chrome and then restart everything. I'm sure there is a better way to fix the issue, but that is what worked for me.

3楼-- · 2020-06-30 11:30

This problem can also be caused if you changed the jsCodeLocation to use a static bundle in AppDelegate.m for a release build and didn't change it back to the local settings.

倾城 Initia
4楼-- · 2020-06-30 11:31

Make sure both your device and your laptop are on the same wi-fi network. My phone was on LTE and my laptop was on my regular wi-fi.

5楼-- · 2020-06-30 11:32
 sudo sysctl -w fs.inotify.max_user_instances=1024
 sudo sysctl -w fs.inotify.max_user_watches=100000

you can try this bunch of line in your terminal. Just increase the max_user_watches number and it worked for me.

6楼-- · 2020-06-30 11:33

In my case I opened

Command prompt

as Administrator reached to the app location and enter

react-native start

it goes till Loading dependency graph, done. Then I remained it open and open another command prompt as Administrator go to the app location and entered

react-native run-android

and its worked....

In mac open Terminal instead of Command prompt and rest is same.

Peace ...

7楼-- · 2020-06-30 11:35

Shake your device, on the menu, select enable live reload and enable hot reload

登录 后发表回答