[Pkg-javascript-devel] Bug#1003260: leaflet-image: FTBFS with webpack5: Invalid configuration object
Pirate Praveen
praveen at onenetbeyond.org
Tue May 24 12:43:27 BST 2022
Control: severity -1 serious
On Wed, 26 Jan 2022 14:15:10 +0100 Jonas Smedegaard <jonas at jones.dk>
wrote:
> Thanks, I did indeed not notice the relevancy of the -d option.
>
> Unfortunately I cannot tell if your proposed patch is working or not,
> however - seems webpac5 is broken in experimental currently
(undeclared
> dependency on node-import-local - which by the way horribly pulls in
a
> pile of unneeded packages including babel - and even then webpack
throws
> error - and horribly does not fail but continues with - I assume -
> broken code). :-(
>
> Let's continue this when webpack5 in experimental works.
webpack 5 is in unstable and most of the reported issues are fixed.
Many of the reverse build dependencies now builds fine with webpack 5
indicating webpack itself is in a good shape now.
I can reproduce the same error,
webpack -d --config debian/webpack.config.js \
--output-library leafletImage \
--output-path /<<PKGBUILDDIR>>/debian/js \
--output-filename leaflet-image.js -- index.js
[webpack-cli] Invalid configuration object. Webpack has been
initialized using a configuration object that does n
ot match the API schema.
- configuration.devtool should match pattern
"^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-ma
p$".
BREAKING CHANGE since webpack 5: The devtool option is more strict.
Please strictly follow the order of the keywords in the pattern.
More information about the Pkg-javascript-devel
mailing list