[Pkg-javascript-devel] Bug#1082689: node-ts-loader: FTBFS: Type 'undefined' is not assignable to type 'string'.

Santiago Vila sanvila at debian.org
Tue Sep 24 18:41:48 BST 2024


Package: src:node-ts-loader
Version: 9.4.2-1
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
  debian/rules binary
dh binary
    dh_update_autotools_config
    dh_autoreconf
    dh_auto_configure --buildsystem=nodejs
Link ./node_modules/@types/node -> /usr/share/nodejs/@types/node
Link ./node_modules/enhanced-resolve -> /usr/share/nodejs/enhanced-resolve
Link ./node_modules/@types/semver -> /usr/share/nodejs/@types/semver
Link ./node_modules/@types/micromatch -> /usr/share/nodejs/@types/micromatch
Link ./node_modules/webpack -> /usr/share/nodejs/webpack
Link ./node_modules/typescript -> /usr/share/nodejs/typescript
Link node_modules/@types/chalk -> ../../debian/build_modules/@types/chalk
    dh_auto_build --buildsystem=nodejs
Found debian/nodejs/./build
	cd ./. && sh -ex debian/nodejs/./build
+ tsc --version
Version 4.8.4
+ tsc --project ./src
src/index.ts(271,9): error TS2531: Object is possibly 'null'.
src/index.ts(449,3): error TS2532: Object is possibly 'undefined'.
src/instances.ts(144,9): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
   Type 'undefined' is not assignable to type 'string'.
src/watch-run.ts(106,35): error TS2345: Argument of type 'string | Buffer | undefined' is not assignable to parameter of type 'string'.
   Type 'undefined' is not assignable to type 'string'.
dh_auto_build: error: cd ./. && sh -ex debian/nodejs/./build returned exit code 2
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202409/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.



More information about the Pkg-javascript-devel mailing list