node-fs-extra: v9.0.0 incompatible with Cypress. Throwing exception

  • Operating System: macOS Mojave, v.10.14.6
  • Node.js version: v10.16.0
  • fs-extra version: v9.0.0

image

Previous version 8.1.0 works just fine

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 3
  • Comments: 27

Most upvoted comments

This problem happens only on MacOS.

It’s erroring out over an optional catch binding we use. What’s puzzling is why you’d be getting this error on Node v10.16.0; as optional catch bindings are supported in Node since v10.0.0.

Breaking a popular lib for everybody not on V10 is a little bit problematic isn’t it? Node V8 isn’t deprecated. It’s still widely popular.

Never tried this, but guess that might be the fix? https://stackoverflow.com/questions/29349684/how-can-i-specify-the-required-node-js-version-in-package-json

"fs-extra": "8.1.0" working

That is only one minor feature that breaks Node 8. That we really need.

Same with Node v12.14.1 here, fine up to v8.0.1

this one is on Windows 10

Node v8 has been EOL since 31st Dec 2019: As shown here: https://nodejs.org/en/about/releases/ and here: https://github.com/nodejs/Release/blob/master/schedule.json#L38

It is no longer supported widely, and nor should it be, as it is no longer being maintained.

fs-extra already has the minimum node version declared in the package.json engines field.

The feature that’s being used here is Optional Catch bindings and is reported as widely supported in Node.js v10.


All of that being said, we’re also seeing this error in an environment self-reporting as Node.js v12 and will update when we get to the bottom of it.

I have Node v10 but still having issues