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

Santiago Vila sanvila at debian.org
Sat Aug 17 14:40:04 BST 2024


Package: src:node-jschardet
Version: 3.0.0+dfsg+~1.4.0-2
Severity: serious
Control: close -1 3.0.0+dfsg+~1.4.0-3
Tags: ftbfs bookworm

Dear maintainer:

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

--------------------------------------------------------------------------------
[...]
  debian/rules binary
dh binary
    dh_update_autotools_config
    dh_autoreconf
    dh_auto_configure --buildsystem=nodejs
Copy /usr/share/nodejs/@babel/parser -> ./node_modules/@babel
Copy /usr/share/nodejs/@babel/types -> ./node_modules/@babel
Copy /usr/share/nodejs/@types/istanbul-lib-coverage -> ./node_modules/@types
Copy /usr/share/nodejs/@types/istanbul-lib-report -> ./node_modules/@types
Copy /usr/share/nodejs/@types/node -> ./node_modules/@types
Link node_modules/chardet -> ../chardet
    debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
cp chardet/package.json debian/
perl -i -pe 's/0.0.0-development/1.4.0/' chardet/package.json
dh_auto_build --buildsystem=nodejs
Found debian/nodejs/chardet/build
	cd ./chardet && sh -ex ../debian/nodejs/chardet/build
+ tsc
../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.
TSFILE: /<<PKGBUILDDIR>>/chardet/lib/encoding/index.js
TSFILE: /<<PKGBUILDDIR>>/chardet/lib/encoding/index.js.map
TSFILE: /<<PKGBUILDDIR>>/chardet/lib/encoding/index.d.ts
TSFILE: /<<PKGBUILDDIR>>/chardet/lib/match.js
TSFILE: /<<PKGBUILDDIR>>/chardet/lib/match.js.map
TSFILE: /<<PKGBUILDDIR>>/chardet/lib/match.d.ts
TSFILE: /<<PKGBUILDDIR>>/chardet/lib/fs/node.js
TSFILE: /<<PKGBUILDDIR>>/chardet/lib/fs/node.js.map
TSFILE: /<<PKGBUILDDIR>>/chardet/lib/fs/node.d.ts
TSFILE: /<<PKGBUILDDIR>>/chardet/lib/encoding/utf8.js
TSFILE: /<<PKGBUILDDIR>>/chardet/lib/encoding/utf8.js.map
TSFILE: /<<PKGBUILDDIR>>/chardet/lib/encoding/utf8.d.ts
TSFILE: /<<PKGBUILDDIR>>/chardet/lib/encoding/unicode.js
TSFILE: /<<PKGBUILDDIR>>/chardet/lib/encoding/unicode.js.map
TSFILE: /<<PKGBUILDDIR>>/chardet/lib/encoding/unicode.d.ts
TSFILE: /<<PKGBUILDDIR>>/chardet/lib/encoding/mbcs.js
TSFILE: /<<PKGBUILDDIR>>/chardet/lib/encoding/mbcs.js.map
TSFILE: /<<PKGBUILDDIR>>/chardet/lib/encoding/mbcs.d.ts
TSFILE: /<<PKGBUILDDIR>>/chardet/lib/encoding/sbcs.js
TSFILE: /<<PKGBUILDDIR>>/chardet/lib/encoding/sbcs.js.map
TSFILE: /<<PKGBUILDDIR>>/chardet/lib/encoding/sbcs.d.ts
TSFILE: /<<PKGBUILDDIR>>/chardet/lib/encoding/iso2022.js
TSFILE: /<<PKGBUILDDIR>>/chardet/lib/encoding/iso2022.js.map
TSFILE: /<<PKGBUILDDIR>>/chardet/lib/encoding/iso2022.d.ts
TSFILE: /<<PKGBUILDDIR>>/chardet/lib/index.js
TSFILE: /<<PKGBUILDDIR>>/chardet/lib/index.js.map
TSFILE: /<<PKGBUILDDIR>>/chardet/lib/index.d.ts
TSFILE: /<<PKGBUILDDIR>>/chardet/lib/fs/browser.js
TSFILE: /<<PKGBUILDDIR>>/chardet/lib/fs/browser.js.map
TSFILE: /<<PKGBUILDDIR>>/chardet/lib/fs/browser.d.ts
Files:                         111
Lines of Library:            28073
Lines of Definitions:        43490
Lines of TypeScript:          5903
Lines of JavaScript:             0
Lines of JSON:                   0
Lines of Other:                  0
Nodes of Library:           119644
Nodes of Definitions:       101973
Nodes of TypeScript:          9430
Nodes of JavaScript:             0
Nodes of JSON:                   0
Nodes of Other:                  0
Identifiers:                 80005
Symbols:                     87775
Types:                       39639
Instantiations:              31123
Memory used:               165865K
Assignability cache size:    17009
Identity cache size:           115
Subtype cache size:             12
Strict subtype cache size:     923
I/O Read time:               0.01s
Parse time:                  0.77s
ResolveModule time:          0.03s
ResolveTypeReference time:   0.01s
Program time:                0.89s
Bind time:                   0.49s
Check time:                  3.10s
transformTime time:          0.07s
Source Map time:             0.03s
commentTime time:            0.00s
I/O Write time:              0.00s
printTime time:              0.25s
Emit time:                   0.25s
Total time:                  4.73s
dh_auto_build: error: cd ./chardet && sh -ex ../debian/nodejs/chardet/build returned exit code 2
make[1]: *** [debian/rules:17: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:12: 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/bookworm/

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