[Pkg-javascript-devel] Bug#1003260: Bug#1003260: leaflet-image: FTBFS with webpack5: Invalid configuration object

Jonas Smedegaard jonas at jones.dk
Fri Jan 7 11:52:25 GMT 2022


Control: tag +help

Quoting Caleb Adepitan (2022-01-07 05:47:38)
> 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, leaflet-image was found to fail to build [with webpack5].

> [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.

I fail to understand what causes this failure more specifically.

File debian/webpack.config.js defines the devtool value like this:

> devtool: 'source-map',

That syntax seems perfectly valid to me, consulting 
https://webpack.js.org/configuration/devtool/#devtool


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20220107/a1231d22/attachment.sig>


More information about the Pkg-javascript-devel mailing list