0

Before the upgrade I was using react-native 0.42 and everything worked. I even tried running a new project and still the same error. How do I fix this? Should I revert back to the older version?

React Native App Error

2

2 Answers 2

1

that's how i've solved the issue in my Windows PC:

in the first admin's cmd.exe typed:

netstat -a -b -o

Found PID of 8081 server. Then i killed this proccess by typing

taskkill /pid 1234

where '1234' is your PID found before. open normal cmd.exe and typed:

react-native start

open another normal cmd.exe and typed:

react-native run-android
Sign up to request clarification or add additional context in comments.

Comments

0

This may happen if the 8081 port is used by any other app or service. If you are on a Linux or Mac, head to terminal and then

lsof -i :8081

then you will get a list of ports, just select the one with name node and then

kill -9 <port-no>

and then finally

npm start

This should fix the problem

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.