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:
|
function publishQueue(context, queue) { |
|
Object.defineProperty(context, gracefulQueue, { |
|
get: function() { |
|
return queue |
|
} |
|
}) |
|
} |
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.
When used in an ESM context,
node:fsmodule is not extensible.graceful-fstries to define a Symbol property on thefsnamespace 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.