[Pkg-javascript-devel] Bug#976310: Bug#976310: node-compression-webpack-plugin: TypeError: (0 , _schemaUtils.validate) is not a function
Pirate Praveen
praveen at onenetbeyond.org
Thu Dec 3 21:05:45 GMT 2020
Control: reopen -1
Control: reassign -1 gitlab
On Thu, Dec 3, 2020 at 10:14, Xavier <yadd at debian.org> wrote:
> Does gitlab use `npm install` ? If so, we just have to fix
> node-compression-webpack-plugin/package.json
This is indeed caused by mix of schema-utils 2 and 3. Version 2 is
pulled by yarn and version 3 by debian.
I found a work around for now,
cd /usr/share/nodejs/compression-webpack-plugin/node_modules
ln -s /usr/share/nodejs/schema-utils/ .
cd /usr/share/nodejs/uglifyjs-webpack-plugin/node_modules
ln -s /usr/share/nodejs/schema-utils/ .
cd /usr/share/nodejs/webpack/node_modules
ln -s /usr/share/nodejs/schema-utils/ .
cd /usr/share/nodejs/cache-loader-loader/node_modules
ln -s /usr/share/nodejs/schema-utils/ .
mkdir /usr/share/nodejs/url-loader/node_modules
cd /usr/share/nodejs/url-loader/node_modules
ln -s /usr/share/nodejs/schema-utils/ .
mkdir /usr/share/nodejs/babel-loader/node_modules
cd /usr/share/nodejs/babel-loader/node_modules
ln -s /usr/share/nodejs/schema-utils/ .
I will try to get css-loader from debian working with gitlab as a
proper fix.
More information about the Pkg-javascript-devel
mailing list