#1146325 node-rollup-plugin-sourcemaps: FTBFS with node-babel 8

#1146325#5
Date:
2026-08-31 12:05:06 UTC
From:
To:
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/202608/

A wiki page discussing possible solutions is available here:

https://wiki.debian.org/Javascript/KnownPatches?pow_referer=#node-babel7_8

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-sourcemaps, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rollup -c

src/index.ts → dist, dist...
(!) Plugin typescript: @rollup/plugin-typescript TS2591: Cannot find name 'fs'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.
src/__tests__/index.ts: (2:16)

2 import fs from 'fs';
                 ~~~~

src/index.ts: (1:16)

1 import fs from 'fs';
                 ~~~~

(!) Plugin typescript: @rollup/plugin-typescript TS2591: Cannot find name 'path'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.
src/__tests__/index.ts: (3:18)

3 import path from 'path';
                   ~~~~~~

(!) Plugin typescript: @rollup/plugin-typescript TS2591: Cannot find name 'util'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.
src/__tests__/index.ts: (4:18)

4 import util from 'util';
                   ~~~~~~

src/index.ts: (2:27)

2 import { promisify } from 'util';
                            ~~~~~~

(!) Plugin typescript: @rollup/plugin-typescript TS2304: Cannot find name '__dirname'.
src/__tests__/index.ts: (11:29)

11 const inputPath = path.join(__dirname, '../index.ts');
                               ~~~~~~~~~

src/__tests__/index.ts: (63:27)

63       return path.resolve(__dirname, '..', '..', relativePath);
                             ~~~~~~~~~

(!) Plugin typescript: @rollup/plugin-typescript TS2591: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.
src/__tests__/index.ts: (173:33)

173         exclude: [path.relative(process.cwd(), outputPath)],
                                    ~~~~~~~

(!) Plugin typescript: @rollup/plugin-typescript TS2591: Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.
src/index.ts: (16:65)

16   readFile?(path: string, callback: (error: Error | null, data: Buffer | string) => void): void;
                                                                   ~~~~~~

(!) Plugin typescript: @rollup/plugin-typescript TS7006: Parameter 'item' implicitly has an 'any' type.
src/index.ts: (62:36)

62           if (sourcesContent.every(item => typeof item === 'string')) {
                                      ~~~~

created dist, dist in 813ms
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_test --buildsystem=nodejs
	ln -s ../. node_modules/rollup-plugin-sourcemaps
	/bin/sh -ex debian/tests/pkg-js/test
+ jest --ci
ts-jest[versions] (WARN) Version 6.0.3 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=4.3.0 <6.0.0-0). Please do not report issues in ts-jest if you are using unsupported versions.
FAIL src/__tests__/index.ts
  ● Test suite failed to run

    src/__tests__/index.ts:2:16 - error TS2591: Cannot find name 'fs'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.

    2 import fs from 'fs';
                     ~~~~
    src/__tests__/index.ts:3:18 - error TS2591: Cannot find name 'path'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.

    3 import path from 'path';
                       ~~~~~~
    src/__tests__/index.ts:4:18 - error TS2591: Cannot find name 'util'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.

    4 import util from 'util';
                       ~~~~~~
    src/__tests__/index.ts:11:29 - error TS2304: Cannot find name '__dirname'.

    11 const inputPath = path.join(__dirname, '../index.ts');
                                   ~~~~~~~~~
    src/__tests__/index.ts:63:27 - error TS2304: Cannot find name '__dirname'.

    63       return path.resolve(__dirname, '..', '..', relativePath);
                                 ~~~~~~~~~
    src/__tests__/index.ts:173:33 - error TS2591: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.

    173         exclude: [path.relative(process.cwd(), outputPath)],
                                        ~~~~~~~

Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        1.194 s
Ran all test suites.
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
--------------------------------------------------------------------------------

#1146325#10
Date:
2026-08-31 16:06:22 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
node-rollup-plugin-sourcemaps, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1146325@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Xavier Guimard <yadd@debian.org> (supplier of updated node-rollup-plugin-sourcemaps package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 31 Aug 2026 15:42:37 +0200
Source: node-rollup-plugin-sourcemaps
Built-For-Profiles: nocheck
Architecture: source
Version: 0.6.3-9
Distribution: unstable
Urgency: medium
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Changed-By: Xavier Guimard <yadd@debian.org>
Closes: 1146325
Changes:
 node-rollup-plugin-sourcemaps (0.6.3-9) unstable; urgency=medium
 .
   * Team upload
 .
   [ Roland Mas ]
   * Move the build to debian/nodejs/build
 .
   [ Xavier Guimard ]
   * Fix build with typescript 6 (Closes: #1146325)
   * Restore @jest/globals link, mark test-only extlinks
   * Declare compliance with policy 4.7.4
   * Drop "Rules-Requires-Root: no"
   * Drop "Priority: optional"
   * debian/watch version 5
Checksums-Sha1:
 c7da2d2400c8dae95d552e9d0a6acf7f74d85323 2745 node-rollup-plugin-sourcemaps_0.6.3-9.dsc
 b0f1ca555204e02b109b6e507a02b21ff8b20a3c 3792 node-rollup-plugin-sourcemaps_0.6.3-9.debian.tar.xz
Checksums-Sha256:
 8cf39eabc0cf3a1b084633849c43df98bc3f5852536b9aa9cf65f3a83dbc8615 2745 node-rollup-plugin-sourcemaps_0.6.3-9.dsc
 c9d71d994cf5a189ce355d19451b19e9c07700e4e0b77739cb00a5c3eab5220c 3792 node-rollup-plugin-sourcemaps_0.6.3-9.debian.tar.xz
Files:
 b227edfa14b666c607930c2c4d0373ce 2745 javascript optional node-rollup-plugin-sourcemaps_0.6.3-9.dsc
 a3ef90f65d81e3d69574db233c6b48ff 3792 javascript optional node-rollup-plugin-sourcemaps_0.6.3-9.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEAN/li4tVV3nRAF7J9tdMp8mZ7ukFAmqVow8ACgkQ9tdMp8mZ
7umx3RAAlKI3Y5Lw/DL0ULS0gBc/DJVVWKGRfrthETdGnbnaWOvTc+MM9WMOtI2O
OHonHKesxHQQP5c66fPoFNdQENVH0RVMnQGd3LgyMD223AXC309N3xFBB5oGrWsV
JXNcu6hgzZdlIKcy8XkD2qyAHCd4dtubraeyhwog6R9Nen4UlEcxodCK3YcZjgt/
dvW5uVYfuzpHQLipyUz3ZTwjURntj0DMDHOSGhaQ88ORV18kFzCUrL9beFE0HuM/
WplkdU6AGMmQSAnvVGgnlR45bNC/vcC5gyjLN7FRMTpCTsQVeEesIt7zHQ3nHOj+
2iTRPJQ5loNIi/sUQen9xJPi+fOJiL4pFju57NYqvQ6mq3oYoHbP0VkRtsCVezJU
BOJvnCV9ItWHvjPvMrh0QXGymRLlhC7l4vMtyv/jb0tPryMHnAGmUR9sPpgeGaXa
aLRjq45ZjFt9Ysr0lk3IcPZBp+MFMD4SxdPg99mq7G+ChafUAm1gdkJci6fXeWn8
1OqZVf6pCKO19lEfOTAKmO/915jn/zQBLxJNSfXSWLj8d71UK1KwooMEn9ZxG91Q
0mxKj3HBYEHJmHmTYb/H0B/EtfkWt3LQk9Xq2vtSo6mRkw0GAbBU851/XSwBLtCl
C1KJd8Cvz0Ou44+B0wugmHsV6WG1tLCfYi6uzGlEZ6F9vu9Vrtk=
=DfQC
-----END PGP SIGNATURE-----