Stuck on info starting JS server

Eme Hado picture Eme Hado · Aug 1, 2019 · Viewed 9.4k times · Source

I have initiated successfully a new react-native project. Then, every time I try to run my newly built project using the command react-native run-android, it gets stucks on info Starting JS server....

Here is the output:

$ react-native run-android
info Running jetifier to migrate libraries to AndroidX".
 You can disable it using "--no-jetifier" flag.
Jetifier found 855 file(s) to forward-jetify. Using 4 workers...
info Starting JS server..."

I tried restarting the laptop and switching emulators. I don't know what else to do anymore.

How do I solve the problem?

Answer

Sachin Poreyana picture Sachin Poreyana · Aug 1, 2019

Kill the automatically popped up metro bundler command prompt

Kill the command terminal which is running react-native run-android

Now Run react-native start This will start your js server

In new command prompt window run react-native run-android The app came up in 5 mins in an emulator.