Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/elixir/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Expo XDE无法运行应用程序。未找到隧道打包程序_Javascript_Reactjs_React Native_Exponentjs_Expo - Fatal编程技术网

Javascript Expo XDE无法运行应用程序。未找到隧道打包程序

Javascript Expo XDE无法运行应用程序。未找到隧道打包程序,javascript,reactjs,react-native,exponentjs,expo,Javascript,Reactjs,React Native,Exponentjs,Expo,是否有人遇到此错误: Tunnel packager.yu-tyd.my-app.exp.direct未找到 我的应用程序只是简单的hello world import Expo from 'expo' import React from 'react' import { Text } from 'react-native' const App = () => ( <Text>Hello World</Text> ) Expo.registerRootCom

是否有人遇到此错误:

Tunnel packager.yu-tyd.my-app.exp.direct未找到

我的应用程序只是简单的hello world

import Expo from 'expo'
import React from 'react'
import { Text } from 'react-native'

const App = () => (
  <Text>Hello World</Text>
)

Expo.registerRootComponent(App)

我会错过什么?

我遇到了同样的错误;在我的例子中,我的internet连接不可靠,无法到达运行代码的本地URL,因为它无法在那里进行隧道(Expo中的隧道确保我们能够在VPN后面运行代码

世博会团队的建议:


注意:如果您在MacOS上,而XDE陷入“等待打包机和隧道启动”的困境,则可能需要在您的计算机上安装watchman。最简单的方法是使用自制的brew install watchman。

我刚刚发现此问题,请尝试关闭项目,然后再次打开。它对我有效。我找到了解决此问题的最佳方法
  "dependencies": {
    "@expo/ex-navigation": "^2.9.2",
    "expo": "^15.0.2",
    "react": "~15.4.0",
    "react-native": "https://github.com/exponent/react-native/archive/sdk-15.0.0.tar.gz",
    "react-redux": "^5.0.3",
    "redux": "^3.6.0"
  }