[Pkg-javascript-devel] Bug#1136849: node-rollup-plugin-node-polyfills: FTBFS: Error: Cannot find module 'rollup-plugin-inject'
Santiago Vila
sanvila at debian.org
Sat May 16 17:05:07 BST 2026
Package: src:node-rollup-plugin-node-polyfills
Version: 0.2.1+dfsg+~0.11.0-3
Severity: serious
Tags: ftbfs forky sid
Dear maintainer:
During a rebuild of all packages in unstable, this package failed to build.
Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:
https://people.debian.org/~sanvila/build-logs/202605/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you cannot 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 add an affects on src:node-rollup-plugin-node-polyfills, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean
dh_auto_clean --buildsystem=nodejs
rm -rf ./node_modules/.cache ./.nyc_output
rm -rf rollup-plugin-polyfill-node/node_modules/.cache rollup-plugin-polyfill-node/.nyc_output
rm ./node_modules/.cache
unlink ./node_modules/concat-stream
unlink ./node_modules/core-util-is
unlink ./node_modules/crypto-browserify
unlink ./node_modules/errno
unlink ./node_modules/immediate
unlink ./node_modules/inherits
unlink ./node_modules/isarray
unlink ./node_modules/@rollup/plugin-inject
Trying to remove ./node_modules/@rollup
unlink ./node_modules/@types/node
Trying to remove ./node_modules/@types
unlink ./node_modules/xtend
rm rollup-plugin-polyfill-node/node_modules/.cache
rm ./node_modules/.cache
unlink ./node_modules/concat-stream
unlink ./node_modules/core-util-is
unlink ./node_modules/crypto-browserify
unlink ./node_modules/errno
unlink ./node_modules/immediate
unlink ./node_modules/inherits
unlink ./node_modules/isarray
unlink ./node_modules/@rollup/plugin-inject
Trying to remove ./node_modules/@rollup
unlink ./node_modules/@types/node
Trying to remove ./node_modules/@types
unlink ./node_modules/xtend
unlink node_modules/rollup-plugin-polyfill-node
dh_clean
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/browserify-fs -> ../debian/build_modules/browserify-fs
Link node_modules/buffer-es6 -> ../debian/build_modules/buffer-es6
Link node_modules/process-es6 -> ../debian/build_modules/process-es6
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 [1m71ms[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 [1m63ms[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 [1m58ms[22m[39m
Found debian/nodejs/./build
cd ./. && sh -ex debian/nodejs/./build
+ tsc --moduleResolution node
+ rollup -c
[36m
[1mdist-transpiled/index.js[22m â [1mdist/index.mjs, dist/index.js[22m...[39m
[1m[33m(!) The "output.preferConst" option is deprecated. Use the "output.generatedCode.constBindings" option instead.[39m[22m
[90mhttps://rollupjs.org/https://rollupjs.org/configuration-options/#output-generatedcode-constbindings[39m
[1m[33m(!) The "output.preferConst" option is deprecated. Use the "output.generatedCode.constBindings" option instead.[39m[22m
[90mhttps://rollupjs.org/https://rollupjs.org/configuration-options/#output-generatedcode-constbindings[39m
[32mcreated [1mdist/index.mjs, dist/index.js[22m in [1m37ms[22m[39m
+ node scripts/build-constants.js
+ node scripts/build-polyfills.js
"levelup" is imported by " levelup?commonjs-external", but could not be resolved â treating it as an external dependency.
"level-filesystem" is imported by " level-filesystem?commonjs-external", but could not be resolved â treating it as an external dependency.
"level-js" is imported by " level-js?commonjs-external", but could not be resolved â treating it as an external dependency.
Circular dependency: ../../../usr/share/nodejs/readable-stream/lib/internal/streams/duplex.js -> ../../../usr/share/nodejs/readable-stream/lib/internal/streams/readable.js -> ../../../usr/share/nodejs/readable-stream/lib/internal/streams/duplex.js
Circular dependency: ../../../usr/share/nodejs/readable-stream/lib/internal/streams/duplex.js -> ../../../usr/share/nodejs/readable-stream/lib/internal/streams/writable.js -> ../../../usr/share/nodejs/readable-stream/lib/internal/streams/duplex.js
Circular dependency: ../../../usr/share/nodejs/readable-stream/lib/internal/streams/duplex.js -> ../../../usr/share/nodejs/readable-stream/lib/internal/streams/duplexify.js -> ../../../usr/share/nodejs/readable-stream/lib/internal/streams/duplex.js
Circular dependency: ../../../usr/share/nodejs/readable-stream/lib/stream.js -> ../../../usr/share/nodejs/readable-stream/lib/stream/promises.js -> ../../../usr/share/nodejs/readable-stream/lib/stream.js
dh_auto_test --buildsystem=nodejs
ln -s ../. node_modules/rollup-plugin-node-polyfills
cd ./rollup-plugin-polyfill-node && sh -ex ../debian/nodejs/rollup-plugin-polyfill-node/test
+ mocha
rollup-plugin-node-polyfills
â works with events.js (62ms)
â works with crypto.js
â works with url-parse.js (169ms)
â works with url-file-url-to-path.js (129ms)
â works with url-format.js (104ms)
Circular dependency: polyfill-node._stream_duplex.js -> polyfill-node._stream_readable.js -> polyfill-node._stream_duplex.js
Circular dependency: polyfill-node._stream_duplex.js -> polyfill-node._stream_writable.js -> polyfill-node._stream_duplex.js
â works with stream.js (192ms)
â works with assert.js (115ms)
â works with constants.js
â works with os.js
â works with path.js
â works with string-decoder.js (71ms)
Circular dependency: polyfill-node._stream_duplex.js -> polyfill-node._stream_readable.js -> polyfill-node._stream_duplex.js
Circular dependency: polyfill-node._stream_duplex.js -> polyfill-node._stream_writable.js -> polyfill-node._stream_duplex.js
â works with zlib.js (291ms)
â works with domain.js
â works with crypto.js
â crypto option works (though is broken)
15 passing (1s)
/bin/sh -ex debian/tests/pkg-js/test
+ mocha -R spec
Exception during run: Error: Cannot find module 'rollup-plugin-inject'
Require stack:
- /<<PKGBUILDDIR>>/dist/index.js
- /<<PKGBUILDDIR>>/test/index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1476:15)
at wrapResolveFilename (node:internal/modules/cjs/loader:1049:27)
at defaultResolveImplForCJSLoading (node:internal/modules/cjs/loader:1073:10)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1094:12)
at Module._load (node:internal/modules/cjs/loader:1262:25)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at Module.require (node:internal/modules/cjs/loader:1576:12)
at require (node:internal/modules/helpers:153:16)
at Object.<anonymous> (/<<PKGBUILDDIR>>/dist/index.js:3:16)
at Module._compile (node:internal/modules/cjs/loader:1830:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1961:10)
at Module.load (node:internal/modules/cjs/loader:1553:32)
at Module._load (node:internal/modules/cjs/loader:1355:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at Module.require (node:internal/modules/cjs/loader:1576:12)
at require (node:internal/modules/helpers:153:16)
at Object.<anonymous> (/<<PKGBUILDDIR>>/test/index.js:3:23)
at Module._compile (node:internal/modules/cjs/loader:1830:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1961:10)
at Module.load (node:internal/modules/cjs/loader:1553:32)
at Module._load (node:internal/modules/cjs/loader:1355:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at loadCJSModuleWithModuleLoad (node:internal/modules/esm/translators:326:3)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:231:7)
at ModuleJob.run (node:internal/modules/esm/module_job:437:25)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:639:26)
at async formattedImport (/usr/share/nodejs/mocha/lib/nodejs/esm-utils.js:10:14)
at async Object.requireModule [as requireOrImport] (/usr/share/nodejs/mocha/lib/nodejs/esm-utils.js:102:30)
at async exports.loadFilesAsync (/usr/share/nodejs/mocha/lib/nodejs/esm-utils.js:152:20)
at async singleRun (/usr/share/nodejs/mocha/lib/cli/run-helpers.js:168:3)
at async exports.handler (/usr/share/nodejs/mocha/lib/cli/run.js:379:5) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/<<PKGBUILDDIR>>/dist/index.js',
'/<<PKGBUILDDIR>>/test/index.js'
]
}
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 failed with exit status 2
--------------------------------------------------------------------------------
More information about the Pkg-javascript-devel
mailing list