Emulator Stuck At Loading From 10.0.2.2:8081,what Is Issue?
Solution 1:
I had the same issue. I fixed it by reinstalling the watchman
package. If you are using mac do this brew uninstall watchman
and then brew install watchman
Solution 2:
I had this issue that watchman wasn't able to create the directory in /usr/local/var/run/watchman/-state. I granted access to the parent directory (probably not needed as it likely users system access) then I manually created the directory and re-ran it.
I got the path to the missing directory from the metro terminal window.
Worked fine after that.
Solution 3:
The latest version of React Native change the port of emulator by somehow but the older not. Anyway, please reference to this link . Then it will help you sort it out.
Cheer!
Solution 4:
Maybe your 8081 port is already in use.
Try the first solution in here https://facebook.github.io/react-native/docs/troubleshooting
$ sudo lsof -i :8081
$ kill -9
After that,
$ cd YourProject
and
$ npm start
this should help you debugging the packager
Solution 5:
Your issue can also relate to watchman, try the following commands (I used them on linux ubuntu)
echo 256 | sudo tee -a /proc/sys/fs/inotify/max_user_instances
echo 32768 | sudo tee -a /proc/sys/fs/inotify/max_queued_events
echo 65536 | sudo tee -a /proc/sys/fs/inotify/max_user_watches
the above commands worked for me
Post a Comment for "Emulator Stuck At Loading From 10.0.2.2:8081,what Is Issue?"