[Bug]: jest-haste-map: Watchman crawl failed

See original GitHub issue

Version

28.1.0

Steps to reproduce

git clone https://github.com/temporalio/samples-typescript.git
cd samples-typescript/activities-examples
git checkout 4f21f0f9983a38ba677bd9984375fd37984be8e8
npm install
npm run jest

Expected behavior

No long wait (looks like a 60-second timeout) output about watchman.

Actual behavior

It logs this:

jest-haste-map: Watchman crawl failed. Retrying once with node crawler.
  Usually this happens when watchman isn't running. Create an empty `.watchmanconfig` file in your project's root folder or initialize a git or hg repository in your project.
  Error: Watchman error: watchman::QueryExecError: query failed: synchronization failed: syncToNow: timed out waiting for cookie file to be observed by watcher within 60000 milliseconds: Operation timed out. Make sure watchman is running for this project. See https://facebook.github.io/watchman/docs/troubleshooting.

I tried creating an empty .watchmanconfig file, no change. I also tried enabling Full Disk Access for VS Code (whose terminal I’m using).

Additional context

No response

Environment

System:
    OS: macOS 12.3.1
    CPU: (10) x64 Apple M1 Max
  Binaries:
    Node: 16.13.1 - ~/Library/Caches/fnm_multishells/31617_1653346634654/bin/node
    Yarn: 1.22.18 - /opt/homebrew/bin/yarn
    npm: 8.1.2 - ~/Library/Caches/fnm_multishells/31617_1653346634654/bin/npm
  npmPackages:
    jest: ^28.1.0 => 28.1.0

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11

github_iconTop GitHub Comments

11reactions
hpelitebook745G2commented, Jul 24, 2022

Try this:

  1. watchman watch-del-all
  2. watchman shutdown-server
3reactions
coolskin2bcommented, Jun 28, 2022

Little work around for me with the same problem i already have an .watchmanconfig.

sudo npm start

then say yes allow watchman…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: jest-haste-map: Watchman crawl failed. Retrying once ...
js package.json $ cross-env NODE_ENV=test jest --watch jest-haste-map: Watchman crawl failed. Retrying once with node crawler. Usually this ...
Read more >
How to solve Error jest-haste-map Watchman crawl failed.
Here is the solution on how to solve Error: jest-haste-map: Watchman crawl failed. Retrying once with node crawler when running Jest Test.
Read more >
jest-haste-map: watchman crawl failed. retrying ... - You.com
This is my first time using a Mac for react native dev so I installed everything and made a project but when I...
Read more >
Jest-haste-map: Watchman crawl failed - #2 by jimmylee
The error message is as follows: jest-haste-map: Watchman crawl failed. Retrying once with node crawler. Usually this happens when watchman ...
Read more >
Loading dependency graph...jest-haste-map - appsloveworld
Coding example for the question Loading dependency graph...jest-haste-map: Watchman crawl failed-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