question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to build DependencyGraph: Watchman error: query failed: synchronization failed: Operation timed out.

See original GitHub issue

I have searched for this issue and seemed like no one have exact solution for this. I’ve tried to restart packager, watchman and my computer too. nh ch p man hinh 2016-08-14 luc 16 53 33

 β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
 β”‚  Running packager on port 8081.                                            β”‚
 β”‚                                                                            β”‚
 β”‚  Keep this packager running while developing on any JS projects. Feel      β”‚
 β”‚  free to close this tab and run your own packager instance if you          β”‚
 β”‚  prefer.                                                                   β”‚
 β”‚                                                                            β”‚
 β”‚  https://github.com/facebook/react-native                                  β”‚
 β”‚                                                                            β”‚
 β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
Looking for JS files in
   /Users/anhpt/Documents/ReactProjects/sample

[4:50:26 PM] <START> Building Dependency Graph
[4:50:26 PM] <START> Crawling File System
[Hot Module Replacement] Server listening on /hot

React packager ready.

[4:50:30 PM] <START> request:/index.ios.bundle?platform=ios&dev=true&minify=false
[4:50:30 PM] <START> find dependencies
Failed to build DependencyGraph: Watchman error: query failed: synchronization failed: Operation timed out. Make sure watchman is running for this project. See https://facebook.github.io/watchman/docs/troubleshooting.html.
Error: Watchman error: query failed: synchronization failed: Operation timed out. Make sure watchman is running for this project. See https://facebook.github.io/watchman/docs/troubleshooting.html.
    at /Users/anhpt/Documents/ReactProjects/sample/node_modules/node-haste/lib/crawlers/watchman.js:63:11
    at process._tickCallback (node.js:406:9)

watchman 4.6.0 OS X 10.11.2

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
petehoustoncommented, Dec 6, 2016

Some recommendations:

  • The project directory is mapped or symlink-ed by other apps or services, such as mapping with Vagrant box, mapped as a Dropbox directory… Don’t do this, watchman will fail to watch.
  • Re-install Homebrew and watchman if you upgrade your OS X version. Any OS X update will mess with Homebrew directory.
  • Give sufficient read/write permission to directory. 0644 will be fine.
  • Completely clear all node caches. Make sure to run npm or Yarn as regular users. Execute them as superuser will cause node modules completely stranger and can’t be watched.
0reactions
hramoscommented, May 25, 2017

Closing this issue because it has been inactive for a while. If you think it should still be opened let us know why.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React-Native Failed to build DependencyGraph
Failed to build DependencyGraph: Watchman error: query failed: synchronization failed: Permission denied. Make sure watchman is running for this project.
Read more >
watchman crawl failed - You.com | The AI Search Engine ...
Error : Watchman error: watchman::QueryExecError: query failed: synchronization failed: syncToNow: timed out waiting for cookie file to be observed by watcherΒ ...
Read more >
React Native Community | Anyone facing this problem with ...
Anyone facing this problem with watchman ? Failed to build DependencyGraph: Watchman error: query failed: synchronization failed: Permission denied....
Read more >
make sure watchman is running for this project
Error : Watchman error: query failed: synchronization failed: Operation timed out. Make ... loading dependency graph...jest-haste-map: watchman crawl failed.
Read more >
[Solved]-React-Native Failed to build DependencyGraph
Coding example for the question React-Native Failed to build DependencyGraph: Watchman error-React Native.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found