-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Error: jest-haste-map: Watchman crawl failed. Retrying once with node crawler. #2183
Comments
I had this issue and it was because my Mac OS upgrade had removed permissions which Mas OS version: 10.15.1 |
at your root project location: create a file named as .watchmanconfig I have resolved this by doing this for my project. |
Based on @nigelrobbins3 remark above I ran |
|
Having the same issue, none of the above worked |
I deleted the existing |
Same here, but am running MacOS 12 (Monterey). Did you find a solution? |
Mine was due to watchman caching data from other react-native projects. After I ran |
@zrichardson8039 solution did the trick for me. I'm working with react-native in a yarn workspaces monorepo. |
Running |
none of the above answers worked for me. Restarted my Mac and it worked. |
Related issue |
I have a Mac M1. I solved the issue by uninstalling watchman via brew. I had more luck using watchman installed via MacPorts.
|
For react-native projects, I went into System Preferences > Security & Privacy > Privacy > Full Disk Access and manually gave access permission to the following.
|
@gamble2020 thanks. nothing was working but your solution worked. |
I just reinstall watchman ( |
I tried to just uninstall watchman and it worked for me. |
Thank You |
@kaushal-yadav It helped me too. Why is that? |
If you uninstall watchman you don't get any of its benefits.. |
uninstall watchman worked for me. but it's so weird... I tried several hours to make it work with watchman... And actually if I uninstall watchman, I ran into this issue facebook/watchman#923 So I got a catch-22. |
The thing that I found
|
thanks! its works for me |
My computer is controlled by the company who I work for, and I'm not able to add watchman to the system preferences/Security and privacy/Privacy.... , so I moved the project to /Users/myusername/ ...and it started to work. |
Hope this will be helpful. worked for me. You should move the entire project directory outside of the Documents or Download directory for mac |
So just to add more context to this. I had a similar issue in the react native project. It turns out this started when I was trying to install watchman to eject the project from expo. I uninstalled the watchman and did not re-install it. That worked for me and expo started working again for me! |
First run |
|
In my case, I have an m1 MacBook pro, I had to just uninstall watchman with brew uninstall watchman and it worked. |
In case reinstalling
This will prompt for access to the |
Just Restart your system. Helped in my case. |
Saved my life. Thanks. |
Yes, restarted my Mac worked for me also. Also: if you created a .watchmanconfig empty file in the root of the project following some of the above suggestions: remove it or fill it with
|
Mac M1 |
restart my mac m1 |
First run |
It worked for me by uninstalling watchman in macbook pro m1. I was first all install watchman by running brew install watchman and then give full disk access watchman and my terminal including VSC editor in the security and privacy of system preferences. But it was not working. Then once i run brew uninstall watchman now after restarting my terminal i run npm test and everything is working fine. |
Worked for me |
I got this issue after the update watchman. |
This worked for me too, thanks! |
Do you want to request a feature or report a bug?
bug
What is the current behavior?
When running
jest
in watch mode on the root directory of the project,jest-haste-map
throws an error:This is similar to facebook/create-react-app#346
What is the expected behavior?
Jest starts in watch mode without errors
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?
This is happening in draft-js master with Node v10.14.2
The text was updated successfully, but these errors were encountered: