Could not load exp:// Something went wrong

前端 未结 19 2309
挽巷
挽巷 2021-02-07 06:53

I have created a project using Expo XDE. I checked this Can't load expo app: Something went wrong but I have already enabled \"Draw over other apps\". It works https://expo.

相关标签:
19条回答
  • 2021-02-07 07:11

    I encountered the same problem and none of the solutions worked for me. The problem here is that Expo shows the wrong IP address which your phone can't connect to.

    This is how I worked around it. I'm going to assume that you're on windows and using LAN to run the app on your device.

    1. Open cmd, type ipconfig and find out your local IP. It should be listed as IPv4 Address under the Wireless LAN Adapter section. It will look something like 192.168.xx.x
    2. Now open any text editor in your phone and type exp://192.168.xx.x:19000. Copy this text to your clipboard.
    3. Open Expo app. You will now see the Open from Clipboard option on the top. Press it and your app should load.

    Now anytime you want to load an app, you can copy the same address and open it in Expo.

    There's another simpler workaround I found. Run the command set REACT_NATIVE_PACKAGER_HOSTNAME=192.168.xx.x before expo start. This will set the correct IP in Expo Dev Tools.

    Hope this helps.

    0 讨论(0)
  • 2021-02-07 07:11

    Sometimes the problem is due to using a wrong network adapter priority.

    open the terminal and run

    ipconfig
    

    if your main LAN adapter is not listed as the first adapter, then changing the adapter priority may solve the problem. Just follow the steps:

    1. Goto Control Panel > Network and Internet > Network Connections

    2. Right click your main LAN

    3. Click Properties > Internet Protocol Version 4

    4. Click Properties > Advanced

    5. Uncheck 'Automatic Metric'

    6. Enter 10 in 'Interface Metric'

    7. Click OK

    0 讨论(0)
  • 2021-02-07 07:12

    I tried suggestions given here but are not suitable for my issue. This worked for me. Go to your browser where localhost:19002 is running and change the connection to Tunnel. Scan the new QR code generated from your mobile. Hope this helps!

    0 讨论(0)
  • 2021-02-07 07:13

    If anyone is having a similar problem, my issue had to do withasking to allow node.js to connect with the network appeared, and it worked.

    0 讨论(0)
  • 2021-02-07 07:16

    In my case it was VPN - I have connected my mobile with VPN after disconnect it loaded successfully !

    0 讨论(0)
  • 2021-02-07 07:17

    I guess a lot of people must have done all the above and still have Something went wrong error

    The docs might have specify when building locally and your device is connected to your machine you should click on the Local section on web debug page which shows the QRcode image.

    Then after clicking on Local, try to scan the QRcode once again your error should disappear and shows a loading bundling javascripts assets.

    0 讨论(0)
提交回复
热议问题