#1146324 node-react-toastify: FTBFS with node-babel 8

#1146324#5
Date:
2026-08-31 12:05:00 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-react-toastify, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
dh_auto_build --buildsystem=nodejs
Found debian/nodejs/clsx/build
	cd ./clsx && sh -ex ../debian/nodejs/clsx/build
+ pkgjs-pjson . main
+ MAIN=dist/clsx.js
+ pkgjs-pjson . module
+ ES=dist/clsx.m.js
+ pkgjs-pjson . unpkg
+ UNPKG=dist/clsx.min.js
+ rollup -p @rollup/plugin-commonjs -o dist/cjs.js -f cjs src/index.js

src/index.js → dist/cjs.js...
(!) Mixing named and default exports
https://rollupjs.org/configuration-options/#output-exports
The following entry modules are using named and default exports together:
src/index.js

Consumers of your bundle will have to use chunk.default to access their default export, which may not be what you want. Use `output.exports: "named"` to disable this warning.
created dist/cjs.js in 26ms
+ grep -v ^export dist/cjs.js
+ echo module.exports = clsx;
+ echo module.exports.clsx = clsx;
+ rm -f dist/cjs.js
+ terser -o dist/clsx.min.js dist/clsx.js
+ cp src/index.js dist/clsx.m.js
rollup -p @rollup/plugin-babel -p @rollup/plugin-typescript -p rollup-plugin-terser --external react,clsx -f es -o ./dist/react-toastify.esm.mjs src/index.ts

src/index.ts → ./dist/react-toastify.esm.mjs...
babelHelpers: 'bundled' option was used by default. It is recommended to configure this option explicitly, read more here: https://github.com/rollup/plugins/tree/master/packages/babel#babelhelpers
(!) Plugin typescript: @rollup/plugin-typescript: Rollup 'sourcemap' option must be set to generate source maps.
created ./dist/react-toastify.esm.mjs in 1.3s
rollup -p @rollup/plugin-babel -p @rollup/plugin-typescript -p rollup-plugin-terser --external react,clsx -f cjs -o ./dist/react-toastify.js src/index.ts

src/index.ts → ./dist/react-toastify.js...
babelHelpers: 'bundled' option was used by default. It is recommended to configure this option explicitly, read more here: https://github.com/rollup/plugins/tree/master/packages/babel#babelhelpers
(!) Plugin typescript: @rollup/plugin-typescript: Rollup 'sourcemap' option must be set to generate source maps.
created ./dist/react-toastify.js in 1.3s
tsc -d
tsconfig.json(24,25): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
  Visit https://aka.ms/ts6 for migration information.
make[1]: *** [debian/rules:23: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:17: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1146324#10
Date:
2026-08-31 16:06:18 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
node-react-toastify, 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 1146324@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-react-toastify 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:54:15 +0200
Source: node-react-toastify
Architecture: source
Version: 9.1.2+~1.2.1-6
Distribution: unstable
Urgency: medium
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Changed-By: Xavier Guimard <yadd@debian.org>
Closes: 1146324
Changes:
 node-react-toastify (9.1.2+~1.2.1-6) unstable; urgency=medium
 .
   * Fix build with typescript 6 (Closes: #1146324)
   * Apply multiarch hints from UDD
Checksums-Sha1:
 0c96a1ad6e9f5925bdbc104bfcf7063cabf29744 2742 node-react-toastify_9.1.2+~1.2.1-6.dsc
 afd2d2df30ede1fd528a4b4f09411c7ec2d0ad20 4848 node-react-toastify_9.1.2+~1.2.1-6.debian.tar.xz
Checksums-Sha256:
 7439bec6e9670611775b182c715aaa376bbe9e3107d54c87ce4bce65363ad130 2742 node-react-toastify_9.1.2+~1.2.1-6.dsc
 55e17cde199fa92c2c97f734cf3dd79e1202134276d80ee5a13cb725175aba7f 4848 node-react-toastify_9.1.2+~1.2.1-6.debian.tar.xz
Files:
 bd683839f5f5ebf643883940a003c785 2742 javascript optional node-react-toastify_9.1.2+~1.2.1-6.dsc
 9e2e889718b4bf6422d5d433cee8769d 4848 javascript optional node-react-toastify_9.1.2+~1.2.1-6.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEAN/li4tVV3nRAF7J9tdMp8mZ7ukFAmqVomQACgkQ9tdMp8mZ
7um/KQ//WzczLZOTQMnU0yhLqQxAKXVqLRx9aacqxubNNRvLJJYVB//vB4g3kHdX
udlYt0ECKrDPv6AFh3EYNPRE9qZzGkUmbGXb9vm2/dB7A64/40nONbWvXS70xzky
zVVh/I63wU7/Fz1Z+U2/8taox6NLzZ+SlvXa5VRushBFq35gVjXX8hrQ0POEnoOg
CH7hgTh3Yf9j16jUzVAp2vQgARk7e/cRHzpOfHrOHPULrlNM092iwNnjLF4lLqTH
KM//zfdHPHfn68/KtmIc0Exnft6Wt9J8FXpT0OkcmBp8+l+THQ5CcmCiU7ejpHsB
kJVgEbTjLhzZ5ypPxOUBfnj4Tq8rXG8ou8Y04qRuB0y4EmMfonxynMkolKcQT4Aq
VUP78nDsWMxfGMqYvp062Ng69PDoOU4PrMcaqYnE++YWMlu+zVVkGad+tKS3VNC+
vK14c53U4hLB0A13XIDYEaTir4Jcbak15e8mtojUtJg1xkXUXL6AYgL/ZcCpH/GB
c+uyu7Wan/zVtRjtMQ9O4u+ISDYNB8zLchYxwJiNEqI3sD+wbUkUldRQywPpLrIa
cokXPhhyh8JmQR/TYIAV5xPXnxjmGycGbgDrpkg9fSzeB4PzuRn+w1aHl9df4olK
5st0C7sTH+xPd1HbPcwoQ9HKM17780Drlkatqcow4kXV0DdQZHE=
=scbB
-----END PGP SIGNATURE-----