Bug#976310: [Pkg-javascript-devel] Bug#976310: node-compression-webpack-plugin: TypeError: (0 , _schemaUtils.validate) is not a function
Control: reopen -1 Control: reassign -1 gitlab On Thu, Dec 3, 2020 at 10:14, Xavier 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.
Bug#976310: [Pkg-javascript-devel] Bug#976310: node-compression-webpack-plugin: TypeError: (0 , _schemaUtils.validate) is not a function
On Thu, Dec 3, 2020 at 10:13, Xavier wrote: _schemaUtils.validate *is* a function when using schema-utils ≥ 3. Problem is probably somewhere else I think it is because css-loader is installed from npm which would pull node-schema-loader 2.x. I could not get node-css-loader working last time after it was updated by a major version.
Bug#976310: [Pkg-javascript-devel] Bug#976310: node-compression-webpack-plugin: TypeError: (0 , _schemaUtils.validate) is not a function
On Thu, Dec 3, 2020 at 10:14, Xavier wrote: _schemaUtils.validate *is* a function when using schema-utils ≥ 3. Problem is probably somewhere else Does gitlab use `npm install` ? If so, we just have to fix node-compression-webpack-plugin/package.json yes, it uses yarnpkg install. Can you fix it then? This is the webpack.config.js https://salsa.debian.org/ruby-team/gitlab/-/blob/master/config/webpack.config.js
Bug#976310: [Pkg-javascript-devel] Bug#976310: node-compression-webpack-plugin: TypeError: (0 , _schemaUtils.validate) is not a function
Le 03/12/2020 à 10:13, Xavier a écrit : > Control: tags -1 + moreinfo > > Le 03/12/2020 à 09:54, Pirate Praveen a écrit : >> Package: node-compression-webpack-plugin >> Version: 3.0.1-3 >> Severity: serious >> Control: affects -1 gitlab >> >> Installation of gitlab started failing with the following error. I think >> this is related to the recent update of node-schema-utils. >> >> Webpacking... >> /usr/share/nodejs/webpack/node_modules/webpack-cli/bin/cli.js:93 >> throw err; >> ^ >> >> TypeError: (0 , _schemaUtils.validate) is not a function > > Hi, > > _schemaUtils.validate *is* a function when using schema-utils ≥ 3. > Problem is probably somewhere else Does gitlab use `npm install` ? If so, we just have to fix node-compression-webpack-plugin/package.json
Bug#976310: [Pkg-javascript-devel] Bug#976310: node-compression-webpack-plugin: TypeError: (0 , _schemaUtils.validate) is not a function
Control: tags -1 + moreinfo Le 03/12/2020 à 09:54, Pirate Praveen a écrit : > Package: node-compression-webpack-plugin > Version: 3.0.1-3 > Severity: serious > Control: affects -1 gitlab > > Installation of gitlab started failing with the following error. I think > this is related to the recent update of node-schema-utils. > > Webpacking... > /usr/share/nodejs/webpack/node_modules/webpack-cli/bin/cli.js:93 > throw err; > ^ > > TypeError: (0 , _schemaUtils.validate) is not a function Hi, _schemaUtils.validate *is* a function when using schema-utils ≥ 3. Problem is probably somewhere else