#1145843 moment-timezone.js: FTBFS: error TS2322: Type 'string | undefined' is not assignable to type 'string'.Type 'undefined' is not assignable to type 'string'.

#1145843#5
Date:
2026-08-27 09:54:34 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

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

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 cannot 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 add an affects on src:moment-timezone.js, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
Testing default.js....OK
Testing create-links.js...........OK
Testing add.js.....OK

Done.
tsc --project ./typing-tests
typing-tests/moment-timezone-tests.ts(13,7): error TS2322: Type 'string | undefined' is not assignable to type 'string'.
  Type 'undefined' is not assignable to type 'string'.
make[1]: *** [debian/rules:50: override_dh_auto_test] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:29: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1145843#10
Date:
2026-08-29 10:34:11 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
moment-timezone.js, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1145843@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Xavier Guimard <yadd@debian.org> (supplier of updated moment-timezone.js package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 29 Aug 2026 12:05:27 +0200
Source: moment-timezone.js
Architecture: source
Version: 0.6.2+dfsg-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Changed-By: Xavier Guimard <yadd@debian.org>
Closes: 1145843
Changes:
 moment-timezone.js (0.6.2+dfsg-2) unstable; urgency=medium
 .
   * Team upload
   * Fix build with typescript 6: keep the typing tests non-strict
     (Closes: #1145843)
Checksums-Sha1:
 b96da2f20ce488f4fe3fb2e1f1a7e64e53ab6092 2297 moment-timezone.js_0.6.2+dfsg-2.dsc
 c41720c3da684d5bcf9f04e2f363a3e6e58f4a39 7712 moment-timezone.js_0.6.2+dfsg-2.debian.tar.xz
Checksums-Sha256:
 67370c4bb713313d180b60b752fbee477e52a4c11e8c4b97d8f5af9f638721d9 2297 moment-timezone.js_0.6.2+dfsg-2.dsc
 8917060518b09fe36f4ef88fc7d6cfebace8def7223548049fc3472c229b7200 7712 moment-timezone.js_0.6.2+dfsg-2.debian.tar.xz
Files:
 5fd6f6f238dd6bce1c72619476d50bff 2297 javascript optional moment-timezone.js_0.6.2+dfsg-2.dsc
 b3ea4dd0e11efc3c61cad901dc3af7bc 7712 javascript optional moment-timezone.js_0.6.2+dfsg-2.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEAN/li4tVV3nRAF7J9tdMp8mZ7ukFAmqSso0ACgkQ9tdMp8mZ
7ulU9Q//SWzGXVWoHFWZ9nQ8S+gOFblqN1T9DGk9KhBNQydfVqk0VVKMhRfohBvQ
gxQ74ErS3NjmJzR+qmsvD6YksEYi0Cty4TIJZ9/7NVFVKvK3YZ6BCiN9QhzGCHL2
ttBI/SxUkZ788sz8OUOhoQXuTglVJlDfMx9Mez11jRtVgtn4XiaUlRPG+1zHKX/p
7R9y4qCYwGj5dATR4/Vp0LYvbrqBDQX1QOdVPIoPlAmLueSWiaFjI5/G1ll/19hC
eFhGBWJUuneweaqqwpAKx3l1PL/M6XRK6VYZwD4LF74SmoQxRUFP12lojXERxzgU
5jVP0Swo643sxzJZt4BxmF6gpY2aOZyIgN8ZMDzWTdbDnrWPesJFIAcroPvSSzEe
gy0G8ThFByI1ABy3X+iBUjfuCFJzcWnBUQous5Btf+sE93izgbGJ95bNOWNPQ0gW
LFbuOT/nRZYP2db6muv+OsAm6QMxmL5pETE9K1FnWIu6AIvxLMavQy1/L2RQpNxv
Ebya3JOtROgzPBTjvzn6Z1VRQt3ycV4vkfy+eu/TnN8VXxuwepK+x0YEwwmoQmAO
N27vrvWjOlz/DEwo8Xr9CE4vTsBiPm39gB4riqVSruCGxjadAws0zSRvVJR9pajG
IwmzPMU0+ejHOuu9XObRjRDVoed/sgsz0+6RKiqxSx4OZFCosO0=
=xobZ
-----END PGP SIGNATURE-----