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‘,但一旦启动它,它就会立即崩溃/停止。
我在故障排除指南中找不到任何关于这方面的内容。有人有什么想法吗?
发布于 2016-10-17 10:57:37
您需要再次启动react打包程序。
方法是: 1)在你的终端上运行npm start 2)在你的设备或模拟器上找到一个'reloadJS‘按钮并点击它
https://stackoverflow.com/questions/39574861
复制相似问题