#1002865 Error: Configuration object don't match the API schema

#1002865#5
Date:
2021-12-30 11:38:50 UTC
From:
To:
Hi,

We are starting to build against webpack5 in experimental and the
package needed for local build is webpack and node-webpack-source from
experimental.
During a test rebuild, node-trust-json-document was found to fail to
build in that situation.

Relevant part (hopefully):

dpkg-buildpackage
-----------------

Command: dpkg-buildpackage --sanitize-env -us -uc -b -rfakeroot
dpkg-buildpackage: info: source package node-trust-json-document
dpkg-buildpackage: info: source version 0.1.4~dfsg-10
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Yadd <yadd@debian.org>
  dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
  debian/rules clean
dh clean
    dh_clean
  debian/rules binary
dh binary
    dh_update_autotools_config
    dh_autoreconf
    debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
babeljs --no-babelrc src -d lib --presets=@babel/preset-env
Successfully compiled 10 files with Babel (3109ms).
webpack -d --output-filename json-document.js
[webpack-cli] Invalid configuration object. Webpack has been initialized
using a configuration object that does not match the API schema.
  - configuration.devtool should match pattern
"^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map$".
    BREAKING CHANGE since webpack 5: The devtool option is more strict.
    Please strictly follow the order of the keywords in the pattern.
make[1]: *** [debian/rules:32: debian/js/json-document.min.js] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:48: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit
status 2

The full log is attached to this mail

#1002865#14
Date:
2022-01-21 20:31:18 UTC
From:
To:
Updating node-trust-json-document to resolve previous bug in this repo
here => https://salsa.debian.org/Ayoyimika/node-trust-json-document lead
to another error similar in all reverse dependencies of webpack

error message

  debian/rules binary
dh binary
    dh_update_autotools_config
    dh_autoreconf
    debian/rules override_dh_auto_build
make[1]: Entering directory
'/home/ayoyimika/debian-js-packaging/trust-json-document/node-trust-json-document'
babeljs --no-babelrc src -d lib --presets=@babel/preset-env
Successfully compiled 10 files with Babel (4537ms).
webpack --output-filename json-document.js --mode development
asset json-document.js 99 bytes [emitted] (name: main)

ERROR in main
Module not found: Error: Recursion in resolving
Stack:
   undefined:
(/home/ayoyimika/debian-js-packaging/trust-json-document/node-trust-json-document)
./lib/index.js

webpack 5.65.0 compiled with 1 error in 191 ms
make[1]: *** [debian/rules:32: debian/js/json-document.min.js] Error 1
make[1]: Leaving directory
'/home/ayoyimika/debian-js-packaging/trust-json-document/node-trust-json-document'
make: *** [debian/rules:48: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit
status 2