[Pkg-javascript-devel] Bug#977962: webpack: mkdirp > 1 patch seems broken
Pirate Praveen
praveen at onenetbeyond.org
Wed Dec 23 12:27:30 GMT 2020
Package: webpack,node-compression-webpack-plugin
Version: 4.43.0-6
Severity: serious
To reproduce this issue,
run
jest --ci test/CompressionPlugin.test.js
in node-compression-webpack-plugin
● CompressionPlugin › should work and show compress assets in stats
TypeError: callback must be a function
491 | if (err) return callback(err);
492 | outputPath = compilation.getPath(this.outputPath);
> 493 | this.outputFileSystem.mkdirp(outputPath).then(() =>
{emitFiles()}).catch(er => {throw er});
| ^
494 | });
495 | }
496 |
at validateCallback (node_modules/memfs/lib/volume.js:199:15)
at Volume.mkdirp (node_modules/memfs/lib/volume.js:1579:24)
at ../../../../../usr/share/nodejs/webpack/lib/Compiler.js:493:26
at eval (eval at create
(../../../../../usr/share/nodejs/tapable/lib/HookCodeFactory.js:24:12),
<anonymous>:8:1)
It is also possible a bug in node-compression-webpack-plugin/memfs
module (this should be added as a test only component, I have not
committed this to repo as the tests are failing still). memfs does not
have any dependency on mkdirp hence I think the bug is in webpack.
More information about the Pkg-javascript-devel
mailing list