#1141030 ts-node: FTBFS: error TS2307: Cannot find module 'diff' or its corresponding type declarations.

#1141030#5
Date:
2026-06-28 20:53:04 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/202606/

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:ts-node, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean
   dh_auto_clean --buildsystem=nodejs
	rm -rf ./node_modules/.cache ./.nyc_output
	rm -rf cspotcode-source-map-support/node_modules/.cache cspotcode-source-map-support/.nyc_output
	rm -rf tsconfig-node10/node_modules/.cache tsconfig-node10/.nyc_output
	rm -rf tsconfig-node12/node_modules/.cache tsconfig-node12/.nyc_output
	rm -rf tsconfig-node14/node_modules/.cache tsconfig-node14/.nyc_output
	rm -rf tsconfig-node16/node_modules/.cache tsconfig-node16/.nyc_output
	rm -rf tsconfig-node18/node_modules/.cache tsconfig-node18/.nyc_output
	rm -rf v8-compile-cache-lib/node_modules/.cache v8-compile-cache-lib/.nyc_output
rm ./node_modules/.cache
unlink ./node_modules/arg
unlink ./node_modules/axios
unlink ./node_modules/builtin-modules
unlink ./node_modules/create-require
unlink ./node_modules/@jridgewell/trace-mapping
Trying to remove ./node_modules/@jridgewell
unlink ./node_modules/make-error
unlink ./node_modules/typescript
unlink ./node_modules/@types/diff
Trying to remove ./node_modules/@types
unlink ./node_modules/@types/node
Trying to remove ./node_modules/@types
unlink ./node_modules/yn
rm cspotcode-source-map-support/node_modules/.cache
rm tsconfig-node10/node_modules/.cache
rm tsconfig-node12/node_modules/.cache
rm tsconfig-node14/node_modules/.cache
rm tsconfig-node16/node_modules/.cache
rm tsconfig-node18/node_modules/.cache
rm v8-compile-cache-lib/node_modules/.cache
rm ./node_modules/.cache
unlink ./node_modules/arg
unlink ./node_modules/axios
unlink ./node_modules/builtin-modules
unlink ./node_modules/create-require
unlink ./node_modules/@jridgewell/trace-mapping
Trying to remove ./node_modules/@jridgewell
unlink ./node_modules/make-error
unlink ./node_modules/typescript
unlink ./node_modules/@types/diff
Trying to remove ./node_modules/@types
unlink ./node_modules/@types/node
Trying to remove ./node_modules/@types
unlink ./node_modules/yn
unlink node_modules/@cspotcode/source-map-support
Trying to remove node_modules/@cspotcode
unlink node_modules/@tsconfig/node10
Trying to remove node_modules/@tsconfig
unlink node_modules/@tsconfig/node12
Trying to remove node_modules/@tsconfig
unlink node_modules/@tsconfig/node14
Trying to remove node_modules/@tsconfig
unlink node_modules/@tsconfig/node16
Trying to remove node_modules/@tsconfig
unlink node_modules/@tsconfig/node18
Trying to remove node_modules/@tsconfig
unlink node_modules/v8-compile-cache-lib
   dh_clean
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure --buildsystem=nodejs
Link ./node_modules/arg -> /usr/share/nodejs/arg
Link ./node_modules/axios -> /usr/share/nodejs/axios
Link ./node_modules/builtin-modules -> /usr/share/nodejs/builtin-modules
Link ./node_modules/create-require -> /usr/share/nodejs/create-require
Link ./node_modules/@jridgewell/trace-mapping -> /usr/share/nodejs/@jridgewell/trace-mapping
Link ./node_modules/make-error -> /usr/share/nodejs/make-error
Link ./node_modules/typescript -> /usr/share/nodejs/typescript
Not found
### @types/diff is required by debian/nodejs/./extlinks but not available
# Typescript definition detected, Fallback to main module
### You SHOULD update your debian/nodejs/./extlinks file!
Link ./node_modules/@types/node -> /usr/share/nodejs/@types/node
Link ./node_modules/yn -> /usr/share/nodejs/yn
Link node_modules/@cspotcode/source-map-support -> ../../cspotcode-source-map-support
Link node_modules/@tsconfig/node10 -> ../../tsconfig-node10
Link node_modules/@tsconfig/node12 -> ../../tsconfig-node12
Link node_modules/@tsconfig/node14 -> ../../tsconfig-node14
Link node_modules/@tsconfig/node16 -> ../../tsconfig-node16
Link node_modules/@tsconfig/node18 -> ../../tsconfig-node18
Link node_modules/v8-compile-cache-lib -> ../v8-compile-cache-lib
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_build --buildsystem=nodejs
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
Found debian/nodejs/cspotcode-source-map-support/build
	cd ./cspotcode-source-map-support && sh -ex ../debian/nodejs/cspotcode-source-map-support/build
+ node build.js
browserify .temp.js
terser .temp.js
No build command found, searching known files
tsc -b ./tsconfig.build-dist.json
src/repl.ts(1,29): error TS2307: Cannot find module 'diff' or its corresponding type declarations.
make[1]: *** [debian/rules:8: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:4: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1141030#8
Date:
2026-06-29 12:01:49 UTC
From:
To:
Hello,

Bug #1141030 in ts-node reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/js-team/ts-node/-/commit/e2ee8c38afb661b7b348827fefd0df2c90977ffe
------------------------------------------------------------------------
Update build links

Closes: #1141030
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1141030

#1141030#15
Date:
2026-06-29 12:42:44 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
ts-node, 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 1141030@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 ts-node 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: Mon, 29 Jun 2026 13:57:11 +0200
Source: ts-node
Architecture: source
Version: 10.9.2+~cs64.13.43-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Changed-By: Xavier Guimard <yadd@debian.org>
Closes: 1141030
Changes:
 ts-node (10.9.2+~cs64.13.43-2) unstable; urgency=medium
 .
   * Team upload
   * Update build links (Closes: #1141030)
Checksums-Sha1:
 1673e1fdadcb1b7ef51fb65928fb90008fa43e34 4955 ts-node_10.9.2+~cs64.13.43-2.dsc
 323cc8083722febf519b2d45efe6946059ef4547 53720 ts-node_10.9.2+~cs64.13.43-2.debian.tar.xz
Checksums-Sha256:
 37b18b59c8a85acb74b854b30c128d2325096582bcd1148824d2b6ff9a933d16 4955 ts-node_10.9.2+~cs64.13.43-2.dsc
 16294ddd482f92ac156c9aad60a3d8840d9efb7e93b85ee3ce4d0fef1765c44d 53720 ts-node_10.9.2+~cs64.13.43-2.debian.tar.xz
Files:
 72accf4737aae5fb9447a02756f570a5 4955 javascript optional ts-node_10.9.2+~cs64.13.43-2.dsc
 bfd5b07691fdbb09797d8921dffd0aed 53720 javascript optional ts-node_10.9.2+~cs64.13.43-2.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEAN/li4tVV3nRAF7J9tdMp8mZ7ukFAmpCXpcACgkQ9tdMp8mZ
7unEkQ//TDCsrL0BOr5a28MA80P6QCi0Jpe3leXb6WY1KDZhUTJ/KjySdI6ALQqI
KjiLzKJfII6zlP1E+J+Q06FnBkciZZEVrToizh2Ot5YvSbtVnOPMDVVVIUMK4coK
G6Koze8y0H9JMnxr6zrE/LvokvTDql/h0DZx6e03QUrSa3SCXzTw35igtKC/InYo
pBJj4+1hGP/KYNMpthQ7m3zjYER7qLLzBHoWRRv8t7m53Z4gbisRC76bJHs9OB6Y
g9WG9Ikqd2rsajkXBfOY37d/HRqMrDdUHK6h4656ZK6RtqWZFl+NZvoOZV58oNeU
2s529/aV2pTTbvQuV0sAjiOrXh/dO9hef6urXRN6/sePlWJWwE1GiL3u7CumvykR
p7Mu7vvUWxBb7RJ0U1hCNKxv4FjwAzZHs8pnd8aiILenDqKE4BL+2usXgn4LnfuF
/klvSx8hzeKcQ8ITwpxDYqPHXNey+vKMqi4dkv24KF92rGAm2pfWydSR7F0ZlkZy
Yq09zlCnYEucEFU3oxbQrkTkzrsW5u6YvTNw8xtx9GxwER8cQyWD3+BoA0nndcmR
iw8Xvf+vFw3mpmmB3bZtD38VGx10d5H2FlgO39S3Nbw+rSeKT7+ijPYkgYiLdCIS
9r+JRTJpxzFTGPSbM+YFJMPpvOeG6teCBMRuZq2zzKXnmeZU/18=
=K23S
-----END PGP SIGNATURE-----