[Pkg-javascript-devel] Bug#1003504: node-lodash: FTBFS with webpack5: TypeError: webpack.optimize.OccurrenceOrderPlugin is not a constructor
Pirate Praveen
praveen at onenetbeyond.org
Mon May 23 11:25:21 BST 2022
Control: severity -1 serious
On Tue, 11 Jan 2022 06:13:27 +0100 Caleb Adepitan
<calebpitan at gmail.com> wrote:
> 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.
Raising severity since webpack 5 is in unstable now.
> 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.
The current failure is,
node lib/main/build-dist.js
node:internal/fs/utils:879
throw new ERR_INVALID_ARG_TYPE(
^
TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type
string or an instance of Buffer, TypedArray, or DataView. Received
undefined
at writeFile (node:fs:2110:5)
at go$writeFile
(/usr/share/nodejs/graceful-fs/graceful-fs.js:138:14)
at Object.writeFile
(/usr/share/nodejs/graceful-fs/graceful-fs.js:135:12)
at Object.writeFile (/usr/share/nodejs/universalify/index.js:5:57)
at minify (/<<PKGBUILDDIR>>/lib/common/minify.js:36:6)
at apply (/<<PKGBUILDDIR>>/lodash.js:493:27)
at wrapper (/<<PKGBUILDDIR>>/lodash.js:5382:16)
at /usr/share/javascript/async/async.js:610:21
at /usr/share/javascript/async/async.js:249:17
at iterate (/usr/share/javascript/async/async.js:149:13) {
code: 'ERR_INVALID_ARG_TYPE'
}
More information about the Pkg-javascript-devel
mailing list