0

React-native 新手问题在这里:我不能让它在 osx 上工作。启动 react-native run-ios testapp 后,我的应用程序构建没有错误并启动 iphone 模拟器,在新终端“React Packager”中出现以下错误:

 ERROR  The watchman connection was closed
Error: The watchman connection was closed
    at Client.cancelCommands (/Users/elgerm/react/test3/node_modules/react-native/node_modules/sane/node_modules/fb-watchman/index.js:52:15)
    at Socket.<anonymous> (/Users/elgerm/react/test3/node_modules/react-native/node_modules/sane/node_modules/fb-watchman/index.js:128:12)
    at emitNone (events.js:72:20)
    at Socket.emit (events.js:166:7)
    at endReadableNT (_stream_readable.js:921:12)
    at nextTickCallbackWith2Args (node.js:442:9)
    at process._tickCallback (node.js:356:17)

在模拟器中添加了应用程序“testapp”,但在启动它时,它会立即崩溃/停止。

我在故障排除指南中找不到任何相关内容。有人有什么想法吗?

4

1 回答 1

0

您需要再次启动反应打包程序。

通过以下方式执行此操作:1)在终端中运行 npm start 2)在您的设备或模拟器上查找“reloadJS”按钮并单击它

于 2016-10-17T02:57:37.277 回答