#1057581 node-clipanion: FTBFS: error TS2307: Cannot find module 'get-stream' or its corresponding type declarations.

#1057581#5
Date:
2023-12-05 22:07:58 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:
--------------------------------------------------------------------------------
[...]
  debian/rules binary
dh binary --with nodejs
    dh_update_autotools_config
    dh_autoreconf
    dh_auto_configure --buildsystem=nodejs
/!\ website/package.json not found
Unable to load website
workspaces field found in package.json

Found debian/nodejs/additional_components
Link ./node_modules/tslib -> /usr/share/nodejs/tslib
Link ./node_modules/@types/mocha -> /usr/share/nodejs/@types/mocha
Link ./node_modules/typescript -> /usr/share/nodejs/typescript
Link ./node_modules/@rollup/plugin-typescript -> /usr/share/nodejs/@rollup/plugin-typescript
Link ./node_modules/@types/chai -> /usr/share/nodejs/@types/chai
Link ./node_modules/ts-node -> /usr/share/nodejs/ts-node
Link ./node_modules/@types/chai-as-promised -> /usr/share/nodejs/@types/chai-as-promised
Link ./node_modules/@types/node -> /usr/share/nodejs/@types/node
Link ./node_modules/get-stream -> /usr/share/nodejs/get-stream
/!\ website/package.json not found
Unable to load website
Link ./node_modules/typanion -> /usr/share/nodejs/typanion
Found debian/nodejs/additional_components
    dh_auto_build --buildsystem=nodejs
/!\ website/package.json not found
Unable to load website
workspaces field found in package.json

Found debian/nodejs/additional_components
Found debian/nodejs/./build
	cd ./. && sh -ex debian/nodejs/./build
+ rollup -c --bundleConfigAsCjs

/<<PKGBUILDDIR>>/sources/advanced/builtins/definitions.ts, /<<PKGBUILDDIR>>/sources/advanced/builtins/help.ts, /<<PKGBUILDDIR>>/sources/advanced/builtins/index.ts, /<<PKGBUILDDIR>>/sources/advanced/builtins/version.ts, /<<PKGBUILDDIR>>/sources/advanced/Cli.ts, /<<PKGBUILDDIR>>/sources/advanced/Command.ts, /<<PKGBUILDDIR>>/sources/advanced/HelpCommand.ts, /<<PKGBUILDDIR>>/sources/advanced/index.ts, /<<PKGBUILDDIR>>/sources/advanced/options/Array.ts, /<<PKGBUILDDIR>>/sources/advanced/options/Boolean.ts, /<<PKGBUILDDIR>>/sources/advanced/options/Counter.ts, /<<PKGBUILDDIR>>/sources/advanced/options/index.ts, /<<PKGBUILDDIR>>/sources/advanced/options/Proxy.ts, /<<PKGBUILDDIR>>/sources/advanced/options/Rest.ts, /<<PKGBUILDDIR>>/sources/advanced/options/String.ts, /<<PKGBUILDDIR>>/sources/advanced/options/utils.ts, /<<PKGBUILDDIR>>/sources/constants.ts, /<<PKGBUILDDIR>>/sources/core.ts, /<<PKGBUILDDIR>>/sources/errors.ts, /<<PKGBUILDDIR>>/sources/format.ts, /<<PKGBUILDDIR>>/sources/platform/browser.ts, /<<PKGBUILDDIR>>/sources/platform/node.ts → lib, lib...
(!) The "preserveModules" option is deprecated. Use the "output.preserveModules" option instead.
https://rollupjs.org/https://rollupjs.org/configuration-options/#output-preservemodules
created lib, lib in 3.7s
+ cp -a sources/platform/package.json lib/platform/
+ debian/apply-publish-config ./package.json
    dh_auto_test --buildsystem=nodejs
/!\ website/package.json not found
Unable to load website
workspaces field found in package.json

Found debian/nodejs/additional_components
	ln -s ../. node_modules/clipanion
	/bin/sh -ex debian/tests/pkg-js/test
+ FORCE_COLOR=1 mocha --require ts-node/register --extension ts tests/specs --exclude tests/specs/browser.test.ts --exclude tests/specs/treeshake.test.ts

TSError: ⨯ Unable to compile TypeScript:
tests/tools.ts(1,54): error TS2307: Cannot find module 'get-stream' or its corresponding type declarations.

     at createTSError (/usr/share/nodejs/ts-node/src/index.ts:865:12)
     at reportTSError (/usr/share/nodejs/ts-node/src/index.ts:869:19)
     at getOutput (/usr/share/nodejs/ts-node/src/index.ts:1083:36)
     at Object.compile (/usr/share/nodejs/ts-node/src/index.ts:1439:41)
     at Module.m._compile (/usr/share/nodejs/ts-node/src/index.ts:1623:30)
     at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
     at Object.require.extensions.<computed> [as .ts] (/usr/share/nodejs/ts-node/src/index.ts:1627:12)
     at Module.load (node:internal/modules/cjs/loader:1197:32)
     at Function.Module._load (node:internal/modules/cjs/loader:1013:12)
     at Module.require (node:internal/modules/cjs/loader:1225:19)
     at require (node:internal/modules/helpers:177:18)
     at Object.<anonymous> (/<<PKGBUILDDIR>>/tests/specs/advanced.test.ts:6:1)
     at Module._compile (node:internal/modules/cjs/loader:1356:14)
     at Module.m._compile (/usr/share/nodejs/ts-node/src/index.ts:1624:23)
     at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
     at Object.require.extensions.<computed> [as .ts] (/usr/share/nodejs/ts-node/src/index.ts:1627:12)
     at Module.load (node:internal/modules/cjs/loader:1197:32)
     at Function.Module._load (node:internal/modules/cjs/loader:1013:12)
     at Module.require (node:internal/modules/cjs/loader:1225:19)
     at require (node:internal/modules/helpers:177:18)
     at Object.exports.requireOrImport (/usr/share/nodejs/mocha/lib/nodejs/esm-utils.js:53:16)
     at async Object.exports.loadFilesAsync (/usr/share/nodejs/mocha/lib/nodejs/esm-utils.js:100:20)
     at async singleRun (/usr/share/nodejs/mocha/lib/cli/run-helpers.js:125:3)
     at async Object.exports.handler (/usr/share/nodejs/mocha/lib/cli/run.js:370:5)
dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1
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/202312/

About the archive rebuild: The build was made using virtual machines
from AWS, with enough memory, enough disk, and either one or two
CPUs, using 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.

#1057581#10
Date:
2024-04-26 15:49:10 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
node-get-stream, 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 1057581@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Yadd <yadd@debian.org> (supplier of updated node-get-stream 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: Fri, 26 Apr 2024 19:21:26 +0400
Source: node-get-stream
Architecture: source
Version: 8.0.1-11
Distribution: unstable
Urgency: medium
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Changed-By: Yadd <yadd@debian.org>
Closes: 1057581
Changes:
 node-get-stream (8.0.1-11) unstable; urgency=medium
 .
   * Declare compliance with policy 4.7.0
   * Add patch to force types export (Closes: #1057581)
Checksums-Sha1:
 ea7b17c5dcf10e6d4aeb24e1c7bd90dc8251acd2 2144 node-get-stream_8.0.1-11.dsc
 49e372868d0ccc408123a5bd470c1eb3d0f95688 6312 node-get-stream_8.0.1-11.debian.tar.xz
Checksums-Sha256:
 809e0bc48defc18e0483f80406b6569cf9186f59c67efcb2b8a451dab41915d1 2144 node-get-stream_8.0.1-11.dsc
 8ae0d02b4e475ba72546f5733e0287a47f9444d8fca38e39e8a766f40dd856db 6312 node-get-stream_8.0.1-11.debian.tar.xz
Files:
 aeec7d22cceddabf5a804a7467483ddc 2144 javascript optional node-get-stream_8.0.1-11.dsc
 32591892d232c2cbae321962c76a843d 6312 javascript optional node-get-stream_8.0.1-11.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEAN/li4tVV3nRAF7J9tdMp8mZ7ukFAmYrxr0ACgkQ9tdMp8mZ
7un3wA/+JBiulps2FXiYR7savaL8HSyhcBo2pSQr/EZ0cndRaPpTz/Lz8R3h9ZtJ
e+1vSZNbc0mLpGMHQDnDBHwfe1wZvi9T96vElIAdEiXFvVXxprO/hLaKNJu0TtlQ
VRdWLQtLGN7MfjPIPnnwnPcc4ZE5OTpibOohfpqnqQ/b0kP2NwuBWp2t0YH6qkmZ
0U1rXMuWyXN/QBAxLrQTSuL5u6DxrlkKo8UyQ0XfnGYRqD9oD4fe4zyWeRLyH4dX
NuQw8oIHEcobPMIxQWP07C0e1K/31SwK2I+D4DsSb/HiPR8D7D/TnfUAxF+5NwTk
G8vtHwTzKoF6+GAPyMNxmIlG4Q7BBCGKDHgHZ0VGh328LL6UmYPfzk8z5fXHvaU9
tXOIzk524NdKMf2gp9gTSIUrmJkh+SsqDZdhhs/2685ngrb/CUMEti41SDerfm+/
smuHxJALiOdD+EaBLH5nwJJ2rxR0XH11Shqu/9yyuFv+MmAdUqUYzbhkIRPGMwLo
OFwka3v6yLgIPLA6WWGY1McVwxjX6cJQYg6uVuypRkxv5kBLrq0vlbyL5cpLYDxS
S2c7RHXNuad+OE06iNDIjEgY7Gsq8rctMvYJ+JKwQU7lDbPpSF9L32YIgyULWSG2
t3XB/RMEz3UFbhW4oUBEZtzSSDBRk22SuCkQ3MjoDtoxWL/Touw=
=d+jo
-----END PGP SIGNATURE-----