macOS `fsevents unavailable (this watcher can only be used on Darwin)`
See original GitHub issueEnvironment
-
code -v
: 1.31.0 7c66f58312b48ed8ca4e387ebd9ffe9605332caa x64 -
node -v
: 10.15.1 -
npm -v
: 6.7.0 -
npm ls jest
ornpm ls react-scripts
(if you haven’t ejected): jest@24.0.0 -
your vscode-jest settings if customized:
- jest.pathToJest? blank
- jest.pathToConfig? blank
- was working before upgrading VScode to 1.31.0
-
Operating system: macOS 10.14.3
Prerequisite
- are you able to run jest test from command line? yes
- how do you run your tests from command line? (for example:
npm run test
ornode_modules/.bin/jest
): -
- npm run test, which is just a shortcut to
jest .
- npm run test, which is just a shortcut to
Steps to Reproduce
- Have Jest Extension installed into older VSCode
- Upgrade VSCode to 1.31.1
- Open a test/spec file
Relevant Debug Info
Error: `fsevents` unavailable (this watcher can only be used on Darwin)
at new FSEventsWatcher (/Users/btaylor/Sites/nzta-seatbelts/node_modules/sane/src/fsevents_watcher.js:37:13)
at createWatcher (/Users/btaylor/Sites/nzta-seatbelts/node_modules/jest-haste-map/build/index.js:952:23)
at Array.map (<anonymous>)
at HasteMap._watch (/Users/btaylor/Sites/nzta-seatbelts/node_modules/jest-haste-map/build/index.js:1127:44)
at _buildPromise._buildFileMap.then.then.hasteMap (/Users/btaylor/Sites/nzta-seatbelts/node_modules/jest-haste-map/build/index.js:441:23)
at process.internalTickCallback (internal/process/next_tick.js:77:7)
Error: `fsevents` unavailable (this watcher can only be used on Darwin)
at new FSEventsWatcher (/Users/btaylor/Sites/nzta-seatbelts/node_modules/sane/src/fsevents_watcher.js:37:13)
at createWatcher (/Users/btaylor/Sites/nzta-seatbelts/node_modules/jest-haste-map/build/index.js:952:23)
at Array.map (<anonymous>)
at HasteMap._watch (/Users/btaylor/Sites/nzta-seatbelts/node_modules/jest-haste-map/build/index.js:1127:44)
at _buildPromise._buildFileMap.then.then.hasteMap (/Users/btaylor/Sites/nzta-seatbelts/node_modules/jest-haste-map/build/index.js:441:23)
at process.internalTickCallback (internal/process/next_tick.js:77:7)
Error: `fsevents` unavailable (this watcher can only be used on Darwin)
at new FSEventsWatcher (/Users/btaylor/Sites/nzta-seatbelts/node_modules/sane/src/fsevents_watcher.js:37:13)
at createWatcher (/Users/btaylor/Sites/nzta-seatbelts/node_modules/jest-haste-map/build/index.js:952:23)
at Array.map (<anonymous>)
at HasteMap._watch (/Users/btaylor/Sites/nzta-seatbelts/node_modules/jest-haste-map/build/index.js:1127:44)
at _buildPromise._buildFileMap.then.then.hasteMap (/Users/btaylor/Sites/nzta-seatbelts/node_modules/jest-haste-map/build/index.js:441:23)
at process.internalTickCallback (internal/process/next_tick.js:77:7)
Error: `fsevents` unavailable (this watcher can only be used on Darwin)
at new FSEventsWatcher (/Users/btaylor/Sites/nzta-seatbelts/node_modules/sane/src/fsevents_watcher.js:37:13)
at createWatcher (/Users/btaylor/Sites/nzta-seatbelts/node_modules/jest-haste-map/build/index.js:952:23)
at Array.map (<anonymous>)
at HasteMap._watch (/Users/btaylor/Sites/nzta-seatbelts/node_modules/jest-haste-map/build/index.js:1127:44)
at _buildPromise._buildFileMap.then.then.hasteMap (/Users/btaylor/Sites/nzta-seatbelts/node_modules/jest-haste-map/build/index.js:441:23)
at process.internalTickCallback (internal/process/next_tick.js:77:7)
Error: `fsevents` unavailable (this watcher can only be used on Darwin)
at new FSEventsWatcher (/Users/btaylor/Sites/nzta-seatbelts/node_modules/sane/src/fsevents_watcher.js:37:13)
at createWatcher (/Users/btaylor/Sites/nzta-seatbelts/node_modules/jest-haste-map/build/index.js:952:23)
at Array.map (<anonymous>)
at HasteMap._watch (/Users/btaylor/Sites/nzta-seatbelts/node_modules/jest-haste-map/build/index.js:1127:44)
at _buildPromise._buildFileMap.then.then.hasteMap (/Users/btaylor/Sites/nzta-seatbelts/node_modules/jest-haste-map/build/index.js:441:23)
at process.internalTickCallback (internal/process/next_tick.js:77:7)
Starting Jest in Watch mode failed too many times and has been stopped.
see troubleshooting: https://github.com/jest-community/vscode-jest/blob/master/README.md#troubleshooting
Expected Behavior
Watch mode to work as expected
Actual Behavior
A notification is shown “Starting Jest in Watch mode failed too many times and has been stopped.” and the Jest extension output window is shown with the debug info above.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:27
- Comments:39
Top Results From Across the Web
Error: `fsevents` unavailable (this watcher can only be used on ...
For me, updating fsevents to the latest fixed the issue. I had the same error as OP with version 1.2.4 , but after...
Read more >Error: `fsevents` unavailable (this watcher can ... - Expo Forums
Error: `fsevents` unavailable (this watcher can only be used on Darwin) · Clear your Yarn or npm cache, depending on which you're using,...
Read more >Error: `fsevents` unavailable (this watcher can only be used on ...
npm run test getting: “Error: `fsevents` unavailable (this watcher can only be used on Darwin)”. I don't know this create-react-app based ...
Read more >React Native ios 填坑之Error: `fsevents` unavailable (this ...
react-native run-ios 运行报错Error: `fsevents` unavailable (this watcher can only be used on Darwin)网上一查两个命令解决,但是.
Read more >Debugging | Flipper
This means you can debug Flipper using Chrome's developer tools. ... error here is Error: fsevents unavailable (this watcher can only be used...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
brew install watchman
fixed the problem for me.https://github.com/cm-pliser-tdd-by-example/tdd-by-example-js/issues/10#issuecomment-361039205
brew install watchman
worked for me too, thanks!