Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

Expo React Native App Not Loading the AppEntry.bundle

$
0
0

I am working on a react-native app using expo. The app was working just fine. I could do npm start to run the metro builder and then run my app on simulator as well as iOS devices directly.

I did 2 things.

  1. I upgraded the expo version to latest - 3.17.15
  2. I rebooted my laptop.

After these 2 changes, I could still do npm start without any issues. But, when I tried to open/ run the app in iOS simulator it got stuck at the bundle loading. In fact it could not get the bundle file only.

I thought this was a network problem where the simulator/ device was not able to reach http://127.0.0.1:19000 However, when I visited the url in the browser that was working.

The bunlde url that I saw in the error: Here's what I see after waiting for 2 minutes

Now, when I try to visit that bundle url through the simulator:

http://127.0.0.1/node_modules/expo/AppEntry.bundle

The browser never loads the thing and times out.

I have already tried:

  1. Cleaning the cache - npm start --reset-cache
  2. Deleting the .expo folders in ~/.expo as well as ~/project/.expo
  3. Changing the mode from Lan -> Tunnel.
  4. Upgrading the global expo-cli to latest version.
  5. removing the node_modules directory in the project ~/project/node_modules
  6. re installing the node_modules by doing - npm install.

IMPORTANT - After having this issue with my current app, I decided to spawn a new blank expo app and run the same. Same result. The bundle was not loaded. I also remember something like this happening to me in the past but don't remember how I fixed it.

My Network is a hotspot through my phone. The same network used to work until yesterday without any issues. So not sure if reboot has caused some setting to revert.

Any help troubleshooting this problem would be very helpful here.

Here's what I see when I visit the url : http://127.0.0.1:19000/

Here's my metro builder log:


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>