[Pkg-javascript-devel] Bug#1123411: node-browserslist: FTBFS: dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1

Santiago Vila sanvila at debian.org
Tue Dec 16 20:27:45 GMT 2025


Package: src:node-browserslist
Version: 4.27.0+~cs8.11.53-2
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/202512/

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-browserslist, 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 baseline-browser-mapping/node_modules/.cache baseline-browser-mapping/.nyc_output
	rm -rf escalade/node_modules/.cache escalade/.nyc_output
	rm -rf node-releases/node_modules/.cache node-releases/.nyc_output
	rm -rf update-browserslist-db/node_modules/.cache update-browserslist-db/.nyc_output
rm ./node_modules/.cache
unlink ./node_modules/@rollup/plugin-typescript
Trying to remove ./node_modules/@rollup
unlink ./node_modules/@types/node
Trying to remove ./node_modules/@types
unlink ./node_modules/rollup-plugin-terser
rm baseline-browser-mapping/node_modules/.cache
rm escalade/node_modules/.cache
rm node-releases/node_modules/.cache
rm update-browserslist-db/node_modules/.cache
rm ./node_modules/.cache
unlink ./node_modules/@rollup/plugin-typescript
Trying to remove ./node_modules/@rollup
unlink ./node_modules/@types/node
Trying to remove ./node_modules/@types
unlink ./node_modules/rollup-plugin-terser
unlink node_modules/baseline-browser-mapping
unlink node_modules/escalade
unlink node_modules/node-releases
unlink node_modules/update-browserslist-db
   dh_clean
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure --buildsystem=nodejs
Link ./node_modules/@rollup/plugin-typescript -> /usr/share/nodejs/@rollup/plugin-typescript
Link ./node_modules/@types/node -> /usr/share/nodejs/@types/node
Link ./node_modules/rollup-plugin-terser -> /usr/share/nodejs/rollup-plugin-terser
Link node_modules/baseline-browser-mapping -> ../baseline-browser-mapping
Link node_modules/escalade -> ../escalade
Link node_modules/node-releases -> ../node-releases
Link node_modules/update-browserslist-db -> ../update-browserslist-db
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_build --buildsystem=nodejs
Found debian/nodejs/baseline-browser-mapping/build
	cd ./baseline-browser-mapping && sh -ex ../debian/nodejs/baseline-browser-mapping/build
+ rollup -c

src/index.ts → dist...
(!) Plugin typescript: @rollup/plugin-typescript TS2532: Object is possibly 'undefined'.
src/index.ts: (178:26)

178           stripLTEPrefix(minimumVersions[browserName].version),
                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/index.ts: (505:9)

505         yearMinimumVersions[year][version.browser] = version;
            ~~~~~~~~~~~~~~~~~~~~~~~~~

src/index.ts: (545:37)

545         let minBrowserVersionInfo = yearMinimumVersions[year][browserName] ?? {
                                        ~~~~~~~~~~~~~~~~~~~~~~~~~

src/scripts/expose-data.ts: (92:27)

92       const releasesObj = browsersOutObject[browser]["releases"];
                             ~~~~~~~~~~~~~~~~~~~~~~~~~~

created dist in 1.8s

src/index.ts → dist/index.cjs...
(!) Plugin typescript: @rollup/plugin-typescript TS2532: Object is possibly 'undefined'.
src/index.ts: (178:26)

178           stripLTEPrefix(minimumVersions[browserName].version),
                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/index.ts: (505:9)

505         yearMinimumVersions[year][version.browser] = version;
            ~~~~~~~~~~~~~~~~~~~~~~~~~

src/index.ts: (545:37)

545         let minBrowserVersionInfo = yearMinimumVersions[year][browserName] ?? {
                                        ~~~~~~~~~~~~~~~~~~~~~~~~~

src/scripts/expose-data.ts: (92:27)

92       const releasesObj = browsersOutObject[browser]["releases"];
                             ~~~~~~~~~~~~~~~~~~~~~~~~~~

created dist/index.cjs in 1.2s

src/cli.ts → dist/cli.js...
(!) Plugin typescript: @rollup/plugin-typescript TS2532: Object is possibly 'undefined'.
src/index.ts: (178:26)

178           stripLTEPrefix(minimumVersions[browserName].version),
                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/index.ts: (505:9)

505         yearMinimumVersions[year][version.browser] = version;
            ~~~~~~~~~~~~~~~~~~~~~~~~~

src/index.ts: (545:37)

545         let minBrowserVersionInfo = yearMinimumVersions[year][browserName] ?? {
                                        ~~~~~~~~~~~~~~~~~~~~~~~~~

src/scripts/expose-data.ts: (92:27)

92       const releasesObj = browsersOutObject[browser]["releases"];
                             ~~~~~~~~~~~~~~~~~~~~~~~~~~

created dist/cli.js in 636ms
+ rm -rf ./dist/scripts/expose-data.d.ts ./dist/cli.d.ts
No build command found, searching known files
No build command found, searching known files
help2man -N -n 'The config to share target browsers and Node.js versions' ./cli.js >browserslist.1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_test --buildsystem=nodejs
	ln -s ../debian/tests/test_modules/nanospy node_modules/nanospy
	ln -s ../. node_modules/browserslist
	/bin/sh -ex debian/tests/pkg-js/test
+ mkdir -p node_modules/browserslist-config-test node_modules/@example.com node_modules/@scope
+ NODE_ENV=test uvu test .test.js
ReferenceError: require is not defined in ES module scope, you can use import instead
This file is being treated as an ES module because it has a '.js' file extension and '/usr/share/nodejs/uvu/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
    at file:///usr/share/nodejs/uvu/dist/index.js:1:13
    at ModuleJobSync.runSync (node:internal/modules/esm/module_job:454:37)
    at ModuleLoader.importSyncForRequire (node:internal/modules/esm/loader:435:47)
    at loadESMFromCJS (node:internal/modules/cjs/loader:1537:24)
    at Module._compile (node:internal/modules/cjs/loader:1688:5)
    at Module._extensions..js (node:internal/modules/cjs/loader:1839:10)
    at Module.load (node:internal/modules/cjs/loader:1441:32)
    at Module._load (node:internal/modules/cjs/loader:1263:12)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
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 returned exit status 2
--------------------------------------------------------------------------------



More information about the Pkg-javascript-devel mailing list