Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't load expo app: Something went wrong

Tags:

reactjs

expo

I've created an expo app with exp init MyApp command and started it by running exp start in MyApp directory.

Then I'm scanning barcode which was printed in console with expo mobile app on android device.

Then "Something went wrong" screen is rendered instead of the app.

View log shows "Uncaught Error: Couldn't load exp://.....".

No errors in expo packager console output.

It used to work sometimes ago.

like image 924
humkins Avatar asked Mar 24 '17 14:03

humkins


People also ask

How do I reload my Expo app?

On android you can swipe down and click reload.

How do I open Expo app on Android?

To open the app: On your Android device, press "Scan QR Code" on the "Home" tab of the Expo Go app and scan the QR code you see in the terminal. On your iPhone or iPad, open the default Apple "Camera" app and scan the QR code you see in the terminal.

Does Expo work on iOS?

Start building projects using web technologies with just your iOS device and your computer. Expo is a developer tool for creating experiences with interactive gestures and graphics using JavaScript and React. Note: some programming experience is recommended. Technical specs: this version of Expo uses React Native 0.69.


1 Answers

What solved this for me was simply changing the connection from LAN to Tunnel. When you start an expo app, a browser window will open with a URL like http://localhost:19002/. Along the left side is a Connection option set to LAN by default. Changing it to Tunnel before scanning the QR code with the expo app solved it.

like image 181
Steve Carey Avatar answered Oct 04 '22 03:10

Steve Carey