[Pkg-javascript-devel] Bug#1002494: webpack 5 unusable: TypeError: this.program.configureOutput

Yadd yadd at debian.org
Thu Dec 23 08:51:27 GMT 2021


Package: webpack
Version: 5.65.0+dfsg+~cs9.20.9-1
Severity: grave
Justification: renders package unusable

When trying to use webpack5, I got the following error:

  make[1]: Entering directory '/<<PKGBUILDDIR>>'
  webpack --mode production
  (node:647989) UnhandledPromiseRejectionWarning: TypeError: this.program.configureOutput is not a function
      at new WebpackCLI (/usr/share/nodejs/webpack-cli/lib/webpack-cli.js:19:18)
      at runCLI (/usr/share/nodejs/webpack-cli/lib/bootstrap.js:5:15)
      at Object.<anonymous> (/usr/share/nodejs/webpack-cli/bin/cli.js:17:1)
      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 Module.require (internal/modules/cjs/loader.js:887:19)
      at require (internal/modules/cjs/helpers.js:74:18)
      at runCli (/usr/share/nodejs/webpack/bin/webpack.js:69:2)
  (node:647989) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
  (node:647989) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
  make[1]: Leaving directory '/<<PKGBUILDDIR>>'

By the way at least to dependencies are missing:
 * node-execa
 * node-import-local (provided by node-jest-bundle)

Cheers,
Yadd



More information about the Pkg-javascript-devel mailing list