最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - 'expo start' or 'npm start' command stuck at ''Starting metro bundl

programmeradmin3浏览0评论

I am using react native expo for building mobile app. I followed below steps:-

  1. expo init myapp
  2. cd myapp
  3. expo start

After running above 3 mands everything was working fine few days ago. But from today it gets stuck on "Starting Metro bundler".

It should proceed further to "Building javascript bundle". But It is stuck with "Starting Metro bundler".

I am using react native expo for building mobile app. I followed below steps:-

  1. expo init myapp
  2. cd myapp
  3. expo start

After running above 3 mands everything was working fine few days ago. But from today it gets stuck on "Starting Metro bundler".

It should proceed further to "Building javascript bundle". But It is stuck with "Starting Metro bundler".

Share Improve this question edited Feb 20, 2021 at 9:49 NightCoder101 asked Feb 20, 2021 at 9:40 NightCoder101NightCoder101 1851 gold badge4 silver badges12 bronze badges
Add a ment  | 

4 Answers 4

Reset to default 5

Try to restart your PC. I think it happens every time I install new packages while the Metro Bundler is running.

This happened to me because I reset my network settings on my phone earlier today which wiped out my all Wi-Fi connections. So my root cause was simple- my phone just wasn't on the same network as my PC anymore.

If you know you're on the right network, there are more details and potential solutions here: https://github./expo/expo-cli/issues/2934 and I think it's important to note that bundling won't start until you click the link from the QR code.

Most likely, it is a network access issue.

I had similar problem several times. To me the previous answers are legit and an even simpler measure also worked for me: just tap phone screen to disconnect wifi of my phone and after a few seconds tap again to reconnect wifi, this solved the problem for me.

More info: the error message on my phone was

Uncaught Error: java.ConnectException: Failed to connect to /192.168.1.69:19000

My pc and phone are connected via wifi to the same router. Pc runs windows and phone runs Android.

what I did was restart my puter,

then I shared a network (hotspot) from my puter and connected again the android and iPad, and it worked.

also, connecting your puter to the same router with your devices is also the same, always remember to log in with expo login mand

发布评论

评论列表(0)

  1. 暂无评论