简体   繁体   English

Watcher花了太长时间加载(NodeWatcher) - React Native

[英]Watcher took too long time to load(NodeWatcher) - React Native

I am trying to run already built application in my mobile. 我正在尝试在我的手机中运行已经构建的应用程序。 When i start the app with "react-native start" code, it returns the following error message after some time 当我使用“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)

I am using Windows 7 (32 Bit). 我使用的是Windows 7(32位)。 I dont find any "Watchman" release for windows 7 32bit system. 对于Windows 7 32位系统,我没有找到任何“Watchman”版本。 Because of this issue, i got the following error after installing my app in mobile 由于此问题,我在移动设备上安装我的应用后出现以下错误

Reference Error: Can't find varaible: __fbBatchedBridge

Edit: now i have upgrade my system to windows8 with 64bit. 编辑:现在我已经将我的系统升级到64位的windows8。 But still i was not able to install the watchman. 但我仍然无法安装守望者。

You can try to edit a file from react-native packager 您可以尝试从react-native packager编辑文件

node_modules\react-native\packager\react-packager\src\FileWatcher\index.js

Change the line 17 MAX_WAIT_TIME to 60000. 将第17行MAX_WAIT_TIME更改为60000。

More here 更多这里

i just want to help you so i think you need to re-install your watchman because I've also had problems with my wachman and the solution I re-install and my program goes back 我只是想帮助你,所以我认为你需要重新安装你的看守员,因为我也遇到了我的wachman问题和我重新安装的解决方案,我的程序又回来了

i hope this answer can help you :) 我希望这个答案可以帮助你:)

Changing this passed my test on window 改变这个通过了我在窗口上的测试

node_modules\react-native\packager\react-packager\src\FileWatcher\index.js line 17 MAX_WAIT_TIME to 50000 or higher 

May be this can help you 可能这可以帮到你

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM