[Pkg-javascript-devel] Bug#1078896: node-rollup-plugin-node-polyfills: 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:40:34 BST 2024
Package: src:node-rollup-plugin-node-polyfills
Version: 0.2.1+dfsg+~0.11.0-1
Severity: serious
Control: close -1 0.2.1+dfsg+~0.11.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
Link ./node_modules/concat-stream -> /usr/share/nodejs/concat-stream
Link ./node_modules/core-util-is -> /usr/share/nodejs/core-util-is
Link ./node_modules/crypto-browserify -> /usr/share/nodejs/crypto-browserify
Link ./node_modules/errno -> /usr/share/nodejs/errno
Link ./node_modules/immediate -> /usr/share/nodejs/immediate
Link ./node_modules/inherits -> /usr/share/nodejs/inherits
Link ./node_modules/isarray -> /usr/share/nodejs/isarray
Link ./node_modules/@rollup/plugin-inject -> /usr/share/nodejs/@rollup/plugin-inject
Link ./node_modules/@types/node -> /usr/share/nodejs/@types/node
Link ./node_modules/xtend -> /usr/share/nodejs/xtend
Link node_modules/rollup-plugin-polyfill-node -> ../rollup-plugin-polyfill-node
Link node_modules/abstract-leveldown -> ../debian/build_modules/abstract-leveldown
Link node_modules/browserify-fs -> ../debian/build_modules/browserify-fs
Link node_modules/buffer-es6 -> ../debian/build_modules/buffer-es6
Link node_modules/deferred-leveldown -> ../debian/build_modules/deferred-leveldown
Link node_modules/fwd-stream -> ../debian/build_modules/fwd-stream
Link node_modules/level-blobs -> ../debian/build_modules/level-blobs
Link node_modules/level-errors -> ../debian/build_modules/level-errors
Link node_modules/level-filesystem -> ../debian/build_modules/level-filesystem
Link node_modules/level-iterator-stream -> ../debian/build_modules/level-iterator-stream
Link node_modules/level-js -> ../debian/build_modules/level-js
Link node_modules/level-peek -> ../debian/build_modules/level-peek
Link node_modules/level-post -> ../debian/build_modules/level-post
Link node_modules/level-sublevel -> ../debian/build_modules/level-sublevel
Link node_modules/level-supports -> ../debian/build_modules/level-supports
Link node_modules/levelup -> ../debian/build_modules/levelup
Link node_modules/looper -> ../debian/build_modules/looper
Link node_modules/ltgt -> ../debian/build_modules/ltgt
Link node_modules/octal -> ../debian/build_modules/octal
Link node_modules/process-es6 -> ../debian/build_modules/process-es6
Link node_modules/pull-cat -> ../debian/build_modules/pull-cat
Link node_modules/pull-level -> ../debian/build_modules/pull-level
Link node_modules/pull-live -> ../debian/build_modules/pull-live
Link node_modules/pull-pushable -> ../debian/build_modules/pull-pushable
Link node_modules/pull-stream -> ../debian/build_modules/pull-stream
Link node_modules/pull-window -> ../debian/build_modules/pull-window
Link node_modules/safer-buffer -> ../debian/build_modules/safer-buffer
Link node_modules/stream-to-pull-stream -> ../debian/build_modules/stream-to-pull-stream
dh_auto_build --buildsystem=nodejs
Found debian/nodejs/rollup-plugin-polyfill-node/build
cd ./rollup-plugin-polyfill-node && sh -ex ../debian/nodejs/rollup-plugin-polyfill-node/build
+ node scripts/build-constants.js
+ node scripts/build-polyfills.js
+ node scripts/collect-polyfills.js
+ tsc -p .
+ rollup -c
[36m
[1mlib/index.js[22m → [1mdist/es, dist/[22m...[39m
[32mcreated [1mdist/es, dist/[22m in [1m135ms[22m[39m
+ rollup lib/index.js -f cjs -o dist/index.js
[36m
[1mlib/index.js[22m → [1mdist/index.js[22m...[39m
[1m[33m(!) Unresolved dependencies[39m[22m
[90mhttps://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency[39m
[1m at rollup/plugin-inject[22m (imported by "lib/index.js")
[1mpath[22m (imported by "lib/index.js")
[1mcrypto[22m (imported by "lib/index.js")
[32mcreated [1mdist/index.js[22m in [1m109ms[22m[39m
+ rollup lib/index.js -f es -o dist/es/index.js
[36m
[1mlib/index.js[22m → [1mdist/es/index.js[22m...[39m
[1m[33m(!) Unresolved dependencies[39m[22m
[90mhttps://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency[39m
[1m at rollup/plugin-inject[22m (imported by "lib/index.js")
[1mpath[22m (imported by "lib/index.js")
[1mcrypto[22m (imported by "lib/index.js")
[32mcreated [1mdist/es/index.js[22m in [1m107ms[22m[39m
Found debian/nodejs/./build
cd ./. && sh -ex debian/nodejs/./build
+ tsc -p .
../../../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?
dh_auto_build: error: cd ./. && sh -ex debian/nodejs/./build returned exit code 2
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/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