![](/img/trans.png)
[英]vs code takes long time to load variables in the first launch in React Native DEBUG mode
[英]Watcher took too long time to load(NodeWatcher) - React Native
我正在嘗試在我的手機中運行已經構建的應用程序。 當我使用“react-native start”代碼啟動應用程序時,它會在一段時間后返回以下錯誤消息
ERROR Watcher took too long to load (NodeWatcher)
Error: Watcher took too long to load (NodeWatcher)
at Timeout._onTimeout (index.js:99:16)
at ontimeout (timers.js:386:14)
at tryOnTimeout (timers.js:250:5)
at Timer.listOnTimeout (timers.js:214:5)
我使用的是Windows 7(32位)。 對於Windows 7 32位系統,我沒有找到任何“Watchman”版本。 由於此問題,我在移動設備上安裝我的應用后出現以下錯誤
Reference Error: Can't find varaible: __fbBatchedBridge
編輯:現在我已經將我的系統升級到64位的windows8。 但我仍然無法安裝守望者。
您可以嘗試從react-native packager編輯文件
node_modules\react-native\packager\react-packager\src\FileWatcher\index.js
將第17行MAX_WAIT_TIME更改為60000。
更多這里
我只是想幫助你,所以我認為你需要重新安裝你的看守員,因為我也遇到了我的wachman問題和我重新安裝的解決方案,我的程序又回來了
我希望這個答案可以幫助你:)
改變這個通過了我在窗口上的測試
node_modules\react-native\packager\react-packager\src\FileWatcher\index.js line 17 MAX_WAIT_TIME to 50000 or higher
可能這可以幫到你
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.