[Pkg-javascript-devel] Bug#1003504: node-lodash: FTBFS with webpack5: TypeError: webpack.optimize.OccurrenceOrderPlugin is not a constructor

Caleb Adepitan calebpitan at gmail.com
Tue Jan 11 05:13:27 GMT 2022


Source: node-lodash
Version: 4.17.21+dfsg+~cs8.31.198.20210220-5
Severity: important
Tags: ftbfs
User: pkg-javascript-devel at alioth-lists.debian.net
Usertags: webpack5

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-lodash was found to fail to build in that 
situation.

Relevant part (hopefully):

/<<PKGBUILDDIR>>/lib/fp/build-dist.js:25
     new webpack.optimize.OccurrenceOrderPlugin,
     ^

TypeError: webpack.optimize.OccurrenceOrderPlugin is not a constructor
     at Object.<anonymous> (/<<PKGBUILDDIR>>/lib/fp/build-dist.js:25:5)
     at Module._compile (internal/modules/cjs/loader.js:999:30)
     at Object.Module._extensions..js 
(internal/modules/cjs/loader.js:1027:10)
     at Module.load (internal/modules/cjs/loader.js:863:32)
     at Function.Module._load (internal/modules/cjs/loader.js:708:14)
     at Function.executeUserEntryPoint [as runMain] 
(internal/modules/run_main.js:60:12)
     at internal/main/run_main_module.js:17:47
make[1]: *** [debian/rules:19: override_dh_auto_build] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:8: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit 
status 2
--------------------------------------------------------------------------------
Build finished at 2022-01-08T15:26:45Z

Finished
--------


The full log is attached to this mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: node-lodash.log
Type: text/x-log
Size: 289681 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20220111/f91562ad/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x8A1B2CC96775D2D7.asc
Type: application/pgp-keys
Size: 3139 bytes
Desc: OpenPGP public key
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20220111/f91562ad/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20220111/f91562ad/attachment.sig>


More information about the Pkg-javascript-devel mailing list