Open htxuuu opened 2 years ago
currently I use yarn and set:
"resolutions": {
"graceful-fs": "4.2.6"
}
in package.json
to lock graceful-fs in v4.2.6
I have a similar issue. The options = null
should be replaced with options = undefined
because null cannot be replaced with default parameters.
Because of that, I am having trouble running my electron application. I see errors with this module.
when Electron dealing with directory with
.asar
, will directly accessoptions.withFileType
. See: https://github.com/electron/electron/blob/4594af595eab12e76034d0d0e94539ef390024bb/lib/common/asar.js#L597and in graceful-fs v4.2.7 and above, will set
options
tonull
in some circumstances. For example: https://github.com/isaacs/node-graceful-fs/blob/9ec3413c8eb1c073c42262bf5a2a8cdf556f68a7/graceful-fs.js#L113when
options
sets tonull
,options.withFileTypes
in Electron will cause error.I suppose it is a bug.