[Pkg-javascript-devel] Bug#1078885: node-es-module-lexer: FTBFS: error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
Santiago Vila
sanvila at debian.org
Sat Aug 17 14:39:55 BST 2024
Package: src:node-es-module-lexer
Version: 1.1.0+dfsg-2
Severity: serious
Control: close -1 1.1.0+dfsg-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
Link ./node_modules/terser -> /usr/share/nodejs/terser
Link ./node_modules/@types/node -> /usr/share/nodejs/@types/node
debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
tsc -m es2015 src/lexer.ts
../../../usr/share/nodejs/@types/node/ts4.8/globals.d.ts(325,84): error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
../../../usr/share/nodejs/@types/node/ts4.8/globals.d.ts(326,85): error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
../../../usr/share/nodejs/@types/node/ts4.8/globals.d.ts(327,85): error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
../../../usr/share/nodejs/@types/node/ts4.8/globals.d.ts(328,84): error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
../../../usr/share/nodejs/@types/node/ts4.8/globals.d.ts(330,22): error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
../../../usr/share/nodejs/@types/node/ts4.8/globals.d.ts(336,35): error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
../../../usr/share/nodejs/@types/node/ts4.8/globals.d.ts(337,35): error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
../../../usr/share/nodejs/@types/node/ts4.8/globals.d.ts(338,32): error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
../../../usr/share/nodejs/@types/node/ts4.8/globals.d.ts(339,39): error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
../../../usr/share/nodejs/@types/node/ts4.8/globals.d.ts(340,42): error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
../../../usr/share/nodejs/@types/node/ts4.8/globals.d.ts(341,35): error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
../../../usr/share/nodejs/@types/node/ts4.8/globals.d.ts(342,38): error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
../../../usr/share/nodejs/@types/node/ts4.8/globals.d.ts(343,34): error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
../../../usr/share/nodejs/@types/node/ts4.8/globals.d.ts(344,37): error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
../../../usr/share/nodejs/@types/node/ts4.8/globals.d.ts(360,21): error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
../../../usr/share/nodejs/@types/node/ts4.8/globals.d.ts(367,21): error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
../../../usr/share/nodejs/@types/node/ts4.8/globals.d.ts(374,21): error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
../../../usr/share/nodejs/@types/node/ts4.8/globals.d.ts(381,21): error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
make[1]: *** [debian/rules:11: src/lexer.js] 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/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