[Pkg-javascript-devel] Bug#1067797: node-y-protocols: FTBFS: error TS2307: Cannot find module 'undici-types' or its corresponding type declarations.

Santiago Vila sanvila at debian.org
Tue Mar 26 21:25:27 GMT 2024


Package: src:node-y-protocols
Version: 1.0.5-7
Severity: serious
Tags: ftbfs

Dear maintainer:

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

--------------------------------------------------------------------------------
[...]
  debian/rules binary
dh binary --with nodejs --buildsystem=nodejs
    dh_update_autotools_config -O--buildsystem=nodejs
    dh_autoreconf -O--buildsystem=nodejs
    dh_auto_configure --buildsystem=nodejs -O--buildsystem=nodejs
Link ./node_modules/@rollup/plugin-commonjs -> /usr/share/nodejs/@rollup/plugin-commonjs
Link ./node_modules/@rollup/plugin-node-resolve -> /usr/share/nodejs/@rollup/plugin-node-resolve
Copy /usr/share/nodejs/lib0 -> ./node_modules/
cp: cannot overwrite non-directory './node_modules/@rollup/plugin-node-resolve' with directory '/usr/share/nodejs/@rollup/plugin-node-resolve'
Copy /usr/share/nodejs/@rollup/plugin-node-resolve -> ./node_modules/@rollup
Copy /usr/share/nodejs/@rollup/pluginutils -> ./node_modules/@rollup
Copy /usr/share/nodejs/rollup -> ./node_modules/
cp: cannot overwrite non-directory './node_modules/@rollup/plugin-commonjs' with directory '/usr/share/nodejs/@rollup/plugin-commonjs'
Copy /usr/share/nodejs/@rollup/plugin-commonjs -> ./node_modules/@rollup
Copy /usr/share/nodejs/@types/node -> ./node_modules/@types
Not found
### @types/undici-types is required by debian/nodejs/./extcopies but not available
# Typescript definition detected, Fallback to main module
### You SHOULD update your debian/nodejs/./extcopies file!
Copy /usr/share/nodejs/yjs -> ./node_modules/
    debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
tsc --outDir .
node_modules/@types/node/ts4.8/globals.d.ts(325,84): error TS2307: Cannot find module 'undici-types' or its corresponding type declarations.
node_modules/@types/node/ts4.8/globals.d.ts(326,85): error TS2307: Cannot find module 'undici-types' or its corresponding type declarations.
node_modules/@types/node/ts4.8/globals.d.ts(327,85): error TS2307: Cannot find module 'undici-types' or its corresponding type declarations.
node_modules/@types/node/ts4.8/globals.d.ts(328,84): error TS2307: Cannot find module 'undici-types' or its corresponding type declarations.
node_modules/@types/node/ts4.8/globals.d.ts(330,22): error TS2307: Cannot find module 'undici-types' or its corresponding type declarations.
node_modules/@types/node/ts4.8/globals.d.ts(336,35): error TS2307: Cannot find module 'undici-types' or its corresponding type declarations.
node_modules/@types/node/ts4.8/globals.d.ts(337,35): error TS2307: Cannot find module 'undici-types' or its corresponding type declarations.
node_modules/@types/node/ts4.8/globals.d.ts(338,32): error TS2307: Cannot find module 'undici-types' or its corresponding type declarations.
node_modules/@types/node/ts4.8/globals.d.ts(339,39): error TS2307: Cannot find module 'undici-types' or its corresponding type declarations.
node_modules/@types/node/ts4.8/globals.d.ts(340,42): error TS2307: Cannot find module 'undici-types' or its corresponding type declarations.
node_modules/@types/node/ts4.8/globals.d.ts(341,35): error TS2307: Cannot find module 'undici-types' or its corresponding type declarations.
node_modules/@types/node/ts4.8/globals.d.ts(342,38): error TS2307: Cannot find module 'undici-types' or its corresponding type declarations.
node_modules/@types/node/ts4.8/globals.d.ts(343,34): error TS2307: Cannot find module 'undici-types' or its corresponding type declarations.
node_modules/@types/node/ts4.8/globals.d.ts(344,37): error TS2307: Cannot find module 'undici-types' or its corresponding type declarations.
node_modules/@types/node/ts4.8/globals.d.ts(360,21): error TS2307: Cannot find module 'undici-types' or its corresponding type declarations.
node_modules/@types/node/ts4.8/globals.d.ts(367,21): error TS2307: Cannot find module 'undici-types' or its corresponding type declarations.
node_modules/@types/node/ts4.8/globals.d.ts(374,21): error TS2307: Cannot find module 'undici-types' or its corresponding type declarations.
node_modules/@types/node/ts4.8/globals.d.ts(381,21): error TS2307: Cannot find module 'undici-types' or its corresponding type declarations.
make[1]: *** [debian/rules:11: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:8: binary] Error 2
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/202403/

About the archive rebuild: The build was made on virtual machines
of type m6a.large 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