Closed
Description
I kept getting this error:
ERROR Watcher took too long to load
Try running `watchman version` from your terminal
https://facebook.github.io/watchman/docs/troubleshooting.html
Error: Watcher took too long to load
Try running `watchman version` from your terminal
https://facebook.github.io/watchman/docs/troubleshooting.html
at [object Object]._onTimeout (/Users/jaredly/clone/meditrate/node_modules/react-native/packager/react-packager/src/FileWatcher/index.js:98:16)
at Timer.listOnTimeout (timers.js:110:15)
See http://facebook.github.io/react-native/docs/troubleshooting.html
for common problems and solutions.
And reinstalled watchman a bunch of times, restarted my mac, etc...
Digging into the sane
package, and adding this patch, I was able to discover that the actual watchman error (it was working just fine) was:
resolve_projpath: none of the files listed in global config root_files are present in path `{the project root}` or any of its parent directories
Which really meant: running git init
solved everything. But I wasted a lot of time wondering why things were broken.
So I think the right thing to do here is turn off enforce_root_files
.