2016-09-19 41 views
0

React-native新手問題在這裏:我無法讓它在osx上工作。在啓動 反應本地運行IOS testapp我的應用程序構建沒有錯誤,並啓動了iPhone模擬器,在新的終端「陣營打包」我收到以下錯誤:react-native:守望者連接已關閉

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」被添加,但啓動後,它立即崩潰/停止。

我在故障排除指南中找不到任何內容。任何任何想法?

回答

0

您需要重新啓動反應包裝程序。 1的「reloadJS」按鈕)運行NPM開始在您的設備或模擬器的樣子上終端 2),點擊它

:由

做到這一點

相關問題