#1145961 node-foreground-child: FTBFS: src/index.ts(220,9): error TS2591: Cannot find name 'process'.

#1145961#5
Date:
2026-08-28 10:47:47 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

(Note: I believe this one is not babel7-related)

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/

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-foreground-child, 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>>'
tshy
src/all-signals.ts(1,23): error TS2591: Cannot find name 'node:constants'. 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/all-signals.ts(11,8): error TS2503: Cannot find namespace 'NodeJS'.
src/index.ts(8,8): error TS2591: Cannot find name 'node:child_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/index.ts(35,18): error TS2503: Cannot find namespace 'NodeJS'.
src/index.ts(43,5): error TS2503: Cannot find namespace 'NodeJS'.
src/index.ts(45,41): error TS2503: Cannot find namespace 'NodeJS'.
src/index.ts(137,7): 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.
src/index.ts(163,20): error TS7006: Parameter 'code' implicitly has an 'any' type.
src/index.ts(163,26): error TS7006: Parameter 'signal' implicitly has an 'any' type.
src/index.ts(188,28): error TS7006: Parameter 'code' implicitly has an 'any' type.
src/index.ts(188,34): error TS7006: Parameter 'signal' implicitly has an 'any' type.
src/index.ts(217,9): 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.
src/index.ts(217,22): 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.
src/index.ts(220,9): 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.
src/index.ts(220,22): 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.
src/index.ts(224,7): 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.
src/index.ts(228,7): 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.
src/index.ts(229,5): 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.
src/index.ts(231,26): error TS7006: Parameter 'message' implicitly has an 'any' type.
src/index.ts(231,35): error TS7006: Parameter 'sendHandle' implicitly has an 'any' type.
src/index.ts(232,7): 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.
src/index.ts(235,5): 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.
src/index.ts(235,28): error TS7006: Parameter 'message' implicitly has an 'any' type.
src/index.ts(235,37): error TS7006: Parameter 'sendHandle' implicitly has an 'any' type.
src/proxy-signals.ts(1,35): error TS2591: Cannot find name 'child_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/proxy-signals.ts(21,7): 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.
src/proxy-signals.ts(30,7): 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.
src/watchdog.ts(5,37): error TS2591: Cannot find name 'child_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/watchdog.ts(40,5): 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.
src/watchdog.ts(45,19): 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.
src/watchdog.ts(49,3): 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.
writing tsconfig files...
using existing tsconfig.json
building /<<PKGBUILDDIR>>
tshy config {
  exports: {
    './watchdog': './src/watchdog.ts',
    './proxy-signals': './src/proxy-signals.ts',
    './package.json': './package.json',
    '.': './src/index.ts'
  }
}
exports {
  './watchdog': {
    import: {
      types: './dist/esm/watchdog.d.ts',
      default: './dist/esm/watchdog.js'
    },
    require: {
      types: './dist/commonjs/watchdog.d.ts',
      default: './dist/commonjs/watchdog.js'
    }
  },
  './proxy-signals': {
    import: {
      types: './dist/esm/proxy-signals.d.ts',
      default: './dist/esm/proxy-signals.js'
    },
    require: {
      types: './dist/commonjs/proxy-signals.d.ts',
      default: './dist/commonjs/proxy-signals.js'
    }
  },
  './package.json': './package.json',
  '.': {
    import: { types: './dist/esm/index.d.ts', default: './dist/esm/index.js' },
    require: {
      types: './dist/commonjs/index.d.ts',
      default: './dist/commonjs/index.js'
    }
  }
}
set dialect { where: 'src', mode: 'esm' }
building esm
build failed
make[1]: *** [debian/rules:11: override_dh_auto_build] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:8: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1145961#10
Date:
2026-08-29 10:21:14 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
node-foreground-child, 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 1145961@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-foreground-child 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, 24 Aug 2026 18:46:04 +0200
Source: node-foreground-child
Architecture: source
Version: 4.0.3-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Changed-By: Xavier Guimard <yadd@debian.org>
Closes: 1145961
Changes:
 node-foreground-child (4.0.3-2) unstable; urgency=medium
 .
   * Team upload
   * Fix build with typescript 6: declare @types/node in tsconfig
     (Closes: #1145961)
   * Drop obsolete node-types-tap test dependency
   * Update test invocation for tap 21
Checksums-Sha1:
 8218d3e4e8e35ce01f7ee8173b715d2c68a38a07 2158 node-foreground-child_4.0.3-2.dsc
 b9d6beee0d15d80a3fba03ea8b5b8e338f9912b0 5652 node-foreground-child_4.0.3-2.debian.tar.xz
Checksums-Sha256:
 88d925fb4d0f9cec36a0f7bb5439f6eb5eb1cb90bf19881955499a4298872860 2158 node-foreground-child_4.0.3-2.dsc
 5beee89f386ded648b3d29ded65b244c544993f574e12b11ffbab945f02e19cb 5652 node-foreground-child_4.0.3-2.debian.tar.xz
Files:
 98d79c1eb7a6244fdf37e5762d1582f8 2158 javascript optional node-foreground-child_4.0.3-2.dsc
 104613753116810052f22d27dde6d481 5652 javascript optional node-foreground-child_4.0.3-2.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEAN/li4tVV3nRAF7J9tdMp8mZ7ukFAmqSrqMACgkQ9tdMp8mZ
7ulZ+w/9FDL8GvCB2piY0363MJHmgn/S5/O6PJ4JE3zKnnzEb4W7OP+mknsaG9Cw
lQoltnWw17KoV5+SMyBtkravLJyhe7mAYLY6GrryYIlf4a0VPPxvbdLnHiF7HT/J
RcbQFS9AbP1/T+U1vkrbavkLMWXG7ySozYH8qtf1H0lv1knK0YBe6qRIpfJm3EwL
z4fjLUQNWpm4xPiED1XkT+laqFs8cftr+VdsVU4NxahIVZEDVpPuHrwntySw6iTP
7O0/cAk3xFaqSWCWtdFiHyMuycHOq+fLGubPiTiDggV2rbKiPYnZ5bte3doN4b6K
qpMumWgh4GVQWtcH9UBsPL4h5yPLtnAHBHKv4WdL/bNm5uV3C0Bs2Cw/SeNgHO9o
7nSaZ6L6k01pKVxgL8fcZEniJs+eLToULYdHaELF36rHHKFo6R80dosCHe/s0Upv
mqxvW5tr9O6kPhs/Mf0DW8/MA74cWUIrjAIEqtWjP2zN7eWUgWEq3440cEub3dCe
zzzNgXhTXpqCEfxN4jEwW7nb9Z4xix0Ov7T7rVYIwfHraLZAefzgo59V8JaIzYOW
ZkRGGPmPnxReJ0BnmIwOvWPhY81VwCzRvQLupagho4HrvXO3Ut1kp4LgZXhUF6c6
B4/AaUMVfEDVZeAeHCaVS04F+mI063Q20PvKzmJoswz73u703J4=
=G0Ac
-----END PGP SIGNATURE-----