1

Good Day, I am pretty new to react native and I ran into an issue, my metro bundler starts and gets stuck at loading dependency graph with ('...'), not moving forward or backwards

I have tried using yarn start, changing the ports although my port 8081 is free.

Any other suggestions would be appreciated.

EDIT: any other alternatives to metro bundler? Screenshot:Its just stuck here

Screenshot II: Emulator

3
  • Add a screenshot of your bundler, as well as your simulator/device at the point where you are getting stuck. More information is likely needed to answer your question. Commented Aug 12, 2019 at 16:53
  • Share your work to reproduce this. Commented Aug 12, 2019 at 18:03
  • it's a fresh project Commented Aug 13, 2019 at 9:03

3 Answers 3

1

Did you run react-native run-ios or react-native run-android as well?

because react-native start only runs metro and usually when dependency graph is done it stays there hanging until you connect a simulator/device but it is working as expected.

You can try with react-native --reset-cache to clean up metro after some bad start, but in any case this only starts metro bundler. To get device running use the methods above

Sign up to request clarification or add additional context in comments.

1 Comment

I did run react-native run-android, app loads with a white screen and just stays like that. Let me try react-native --reset-cache
1

Turns out it was my node version, was using v12, I downgraded to v10. Thanks for your suggestions.

Comments

0

For the latest version of RN 0.62, there could be two things that could be wrong.

  • Make sure your node version is < 12.15 since there is a memory leak issue and you would have few issues running the bundler.
  • If you are in MacOs Catalina , just go to the Security & Privacy -> files & folders in the system preferences and change the permissions for watchman.

The simplest way to debug this issue is running the bundler in sudo

sudo react-native start

And if you have permission issue with watchman then you should see bunch of errors in your console.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.