react-native: Error watchman took too long to load

EDIT:

Please make sure you’re running watchman 3.1. You can upgrade using the following:

watchman shutdown-server
brew update
brew upgrade watchman

Then run watchman version to make sure you’re running v3.1


[Error: Watcher took too long to load Try running watchman from your terminal https://facebook.github.io/watchman/docs/troubleshooting.html] Error: Watcher took too long to load Try running watchman from your terminal https://facebook.github.io/watchman/docs/troubleshooting.html at null._onTimeout (/Users/WhackyApps/AwesomeProject/node_modules/react-native/packager/react-packager/src/FileWatcher/index.js:71:16) at Timer.listOnTimeout (timers.js:110:15)

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 50 (13 by maintainers)

Commits related to this issue

Most upvoted comments

Ok, I managed to figure this out. In this commit we see the file getting moved from packager/react-packager/src/FileWatcher/index.js to packager/react-packager/src/DependencyResolver/FileWatcher/index.js

Then in this commit the FileWatcher is completely re-structured under node-haste.

To change MAX_WAIT_TIME now, you should be accessing react-native/node_modules/node-haste/src/FileWatcher/index.js: https://github.com/facebook/node-haste/blob/master/src/FileWatcher/index.js (The project I am trying to run has it built as node-haste/lib/FileWatcher/)