Expo:React Native,“启动隧道时出错:错误:启动隧道超时”

Nav*_*HKA 2 reactjs react-native-ios expo

我的设备和 PC 连接到同一网络,我们如何解决此错误,

重新启动后,它给出了相同的错误:

Switched to a LAN URL because the tunnel appears to be down. Only devices in the same network can access the app. You can restart the project to try reconnecting.
Run Code Online (Sandbox Code Playgroud)

在我的设备上它说

Tunnel packager ....exp.not found
Run Code Online (Sandbox Code Playgroud)

顺便说一句,我在 Windows 上运行;谢谢

Beh*_*ani 6

Expo 和 react-devtools 不能一起使用。因此,如果您正在使用 react-devtools,则必须卸载它。这对我有用:

npm 卸载 react-devtools -g

但我注意到其他一些人在这里取得了成功。

npm uninstall react-devtools --save-dev