Jest: Upgrade to fsevent v2 - Node 13 support

Created on 16 Nov 2019  路  8Comments  路  Source: facebook/jest

npm WARN deprecated [email protected]: One of your dependencies needs to upgrade to fsevents v2: 1) Proper nodejs v10+ support 2) No more fetching binaries from AWS, smaller package size

Using node version 13 it doesn't even build (I'm on Catalina)

Most helpful comment

hi
I using npm in laravel can you help me this error?

All 8 comments

I'm hoping to offload this to sane https://github.com/amasad/sane/pull/130#issuecomment-522994358, but we might need to update here

fsevents v2 also unblocks local Node v12 on OSX, so this change would be super beneficial.

it actually seems pretty trivial to upgrade

@milesj you can use watchman which is faster with Jest to be unblocked

The issue was jest-haste-map was installing fsevents v1, which blocked usage of Node v12 on OSX since it can't compile the binaries. I'll hold out until the fsevents v2 lands in the next release.

hi
I using npm in laravel can you help me this error?

the warning still exists!
jest "24.9.0"
jest-haste-map: "^24.9.0"

I believe this will be fixed by #9215 once a new version of jest-haste-map is released: https://github.com/facebook/jest/pull/9215#issuecomment-570369704

Update: in the meantime, I was able to fix the problem by running npm i fsevents@latest in my project, which seems to prevent npm from installing the older optional dependency within jest-haste-map/node_modules.

Was this page helpful?
0 / 5 - 0 ratings