Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why react-native start command stuck on "Loading dependency graph, done."

react-native start command stuck on Loading dependency graph, done. Running Metro Bundler on port 8081.

Windows 8 : node version : 8.11.3 npm version : 6.3.0 react-native: 0.56.0

package.json

{ "name": "TestApp", "version": "0.0.1", "private": true, "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start", "test": "jest" }, "dependencies": { "react": "16.4.1", "react-native": "0.56.0" }, "devDependencies": { "babel-jest": "23.4.2", "babel-preset-react-native": "5.0.2", "jest": "23.5.0", "react-test-renderer": "16.4.1" }, "jest": { "preset": "react-native" } }

like image 676
Siddharth Vyas Avatar asked Jul 16 '26 09:07

Siddharth Vyas


1 Answers

It's supposed to get stuck there until a device successfully connects to it. The problem is probably that your device for some reason is unable to find your computer, in that case you should get an error message on the phone mentioning it can't connect to the development server. All those suggestions mentioned in that error message may help you solve the problem. Pay extra attention to the development server's host and port configuration. If you have configured the host and port a long time ago and it suddenly stopped to work, a likely cause could be that your computer has been assigned a new ip address, so maybe double check that you're using the correct IP address. Another problem may be that your computer isn't publicly visible on your network.

like image 129
Dennis Persson Avatar answered Jul 18 '26 03:07

Dennis Persson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!