无法加载世博会应用程序:出了点问题 [英] Can't load expo app: Something went wrong

查看:25
本文介绍了无法加载世博会应用程序:出了点问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 exp init MyApp 命令创建了一个 expo 应用程序并通过以下方式启动它在 MyApp 目录中运行 exp start.

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

然后我正在扫描在控制台中打印的条形码 expo 安卓设备上的移动应用.

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.

查看日志显示未捕获的错误:无法加载 exp://.....".

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

expo 打包程序控制台输出中没有错误.

No errors in expo packager console output.

它以前有时可以工作.

推荐答案

为我解决这个问题的方法只是将连接从 LAN 更改为 Tunnel.当您启动一个 expo 应用程序时,将打开一个浏览器窗口,其中包含 http://localhost:19002/ 之类的 URL.左侧是默认设置为 LAN 的连接选项.在使用 expo 应用程序扫描 QR 码之前将其更改为 Tunnel 解决了它.

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.

这篇关于无法加载世博会应用程序:出了点问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆