Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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). I dont find any "Watchman" release for windows 7 32bit system. 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. But still i was not able to install the watchman.

like image 358
viji Avatar asked Jul 14 '17 11:07

viji


3 Answers

You can try to edit a file from react-native packager

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

Change the line 17 MAX_WAIT_TIME to 60000.

More here

like image 193
Tobias Lins Avatar answered Oct 30 '22 10:10

Tobias Lins


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

i hope this answer can help you :)

like image 1
Adit Avatar answered Oct 30 '22 12:10

Adit


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

like image 1
ashutosh pandey Avatar answered Oct 30 '22 10:10

ashutosh pandey