I am new to expo, I have been trying to get my expo started for almost a week and it won’t just work… It worked about 2 weeks ago but since then its been different errors.
The latest error I got is:
Could not get status from Metro bundler. connect ECONNREFUSED 127.0.0.1:19001
Connecting to Metro bundler failed.
Error: Connecting to Metro bundler failed.
at _waitForRunningAsync (/@expo/xdl@57.2.1/src/Project.ts:1540:11)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
Please run expo diagnostics and paste the output here. Also run the following and paste the whole output as well. Please format the output as preformatted text (The </> button) so that it keeps the formatting:
Please try removing the .expo directory within your project and run watchman watch-del-all. Then see if you have any watchman or node or expo processes running. (Of course you could have some other software running that uses node, so it might not be a problem if you find that. Use your judgement.)
If there are any old processes from a previous run of expo start, kill them. Then try running expo start -c again.
This worked thanks a lot, however I had to reinstall expo cli but I am wondering… why I keep getting the same error and I am always having to remove .expo, run watchman watch-del-all most time after I restart my system or restart the project.
It also gives me a couple of challenges when I have to connect to emulator or phone… it works after a lot of clearing caches but that process is a bit frustrating. I will appreciate if there is a solution that will take away this pains but for now I am fine.