We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When used in an ESM context, node:fs module is not extensible. graceful-fs tries to define a Symbol property on the fs namespace here:
node:fs
graceful-fs
fs
node-graceful-fs/graceful-fs.js
Lines 24 to 30 in 2343799
This causes a TypeError:
Object.defineProperty(context, gracefulQueue, { ^ TypeError: Cannot define property Symbol(graceful-fs.queue), object is not extensible
Would be best if the check were to be implemented differently, rather than defining a property on node's fs module.
The text was updated successfully, but these errors were encountered:
Maybe use WeakMap (and drop support for very old version of Node)?
WeakMap
Sorry, something went wrong.
No branches or pull requests
When used in an ESM context,
node:fs
module is not extensible.graceful-fs
tries to define a Symbol property on thefs
namespace here:node-graceful-fs/graceful-fs.js
Lines 24 to 30 in 2343799
This causes a TypeError:
Would be best if the check were to be implemented differently, rather than defining a property on node's fs module.
The text was updated successfully, but these errors were encountered: