#1146328 strophejs: FTBFS with node-babel 8

#1146328#5
Date:
2026-08-31 12:05:10 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:strophejs, 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>>'
dh_auto_build
tsc --project tsconfig.json
rollup --config rollup.config.js --bundleConfigAsCjs

src/index.js → dist/strophe.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 commonjs--resolver) Error: Cannot find package '@babel/plugin-proposal-optional-chaining' imported from /<<PKGBUILDDIR>>/babel-virtual-resolve-base.js
src/index.js
    at __node_internal_ (file:///usr/share/nodejs/import-meta-resolve/lib/errors.js:433:11)
    at new NodeError (file:///usr/share/nodejs/import-meta-resolve/lib/errors.js:377:5)
    at packageResolve (file:///usr/share/nodejs/import-meta-resolve/lib/resolve.js:1035:9)
    at moduleResolve (file:///usr/share/nodejs/import-meta-resolve/lib/resolve.js:1117:18)
    at defaultResolve (file:///usr/share/nodejs/import-meta-resolve/lib/resolve.js:1292:15)
    at resolve (file:///usr/share/nodejs/import-meta-resolve/index.js:32:12)
    at tryImportMetaResolve (file:///usr/share/nodejs/@babel/core/lib/config/files/index.js:485:14)
    at resolveStandardizedNameForImport (file:///usr/share/nodejs/@babel/core/lib/config/files/index.js:517:19)
    at resolveStandardizedName (file:///usr/share/nodejs/@babel/core/lib/config/files/index.js:529:22)
    at loadPlugin (file:///usr/share/nodejs/@babel/core/lib/config/files/index.js:390:7)
    at loadPlugin.next (<anonymous>)
    at createDescriptor (file:///usr/share/nodejs/@babel/core/lib/index-shared.js:522:16)
    at createDescriptor.next (<anonymous>)
    at step (/usr/share/nodejs/gensync/index.js:261:32)
    at evaluateAsync (/usr/share/nodejs/gensync/index.js:291:5)
    at /usr/share/nodejs/gensync/index.js:44:11
    at Array.forEach (<anonymous>)
    at gensync.async (/usr/share/nodejs/gensync/index.js:43:15)
    at gensync.all (/usr/share/nodejs/gensync/index.js:216:13)
    at Generator.next (<anonymous>)
    at createDescriptors (file:///usr/share/nodejs/@babel/core/lib/index-shared.js:484:38)
    at createDescriptors.next (<anonymous>)
    at createPluginDescriptors (file:///usr/share/nodejs/@babel/core/lib/index-shared.js:481:17)
    at createPluginDescriptors.next (<anonymous>)
    at file:///usr/share/nodejs/@babel/core/lib/index-shared.js:386:27
    at Generator.next (<anonymous>)
    at mergeChainOpts (file:///usr/share/nodejs/@babel/core/lib/index-shared.js:1531:34)
    at mergeChainOpts.next (<anonymous>)
    at chainWalker (file:///usr/share/nodejs/@babel/core/lib/index-shared.js:1498:14)
    at chainWalker.next (<anonymous>)
    at loadFileChain (file:///usr/share/nodejs/@babel/core/lib/index-shared.js:1377:24)
    at loadFileChain.next (<anonymous>)
    at buildRootChain (file:///usr/share/nodejs/@babel/core/lib/index-shared.js:1263:27)
    at buildRootChain.next (<anonymous>)
    at loadPrivatePartialConfig (file:///usr/share/nodejs/@babel/core/lib/index-shared.js:1827:30)
    at loadPrivatePartialConfig.next (<anonymous>)
    at loadPartialConfig$1 (file:///usr/share/nodejs/@babel/core/lib/index-shared.js:1869:25)
    at loadPartialConfig$1.next (<anonymous>)
    at step (/usr/share/nodejs/gensync/index.js:269:25)
    at /usr/share/nodejs/gensync/index.js:273:13
    at async.call.result.err.err (/usr/share/nodejs/gensync/index.js:223:11)
    at /usr/share/nodejs/gensync/index.js:50:45
    at step (/usr/share/nodejs/gensync/index.js:287:14)
    at /usr/share/nodejs/gensync/index.js:273:13
    at async.call.result.err.err (/usr/share/nodejs/gensync/index.js:223:11)
    at /usr/share/nodejs/gensync/index.js:189:28
    at file:///usr/share/nodejs/@babel/core/lib/caching-shared.js:43:7
    at /usr/share/nodejs/gensync/index.js:113:33
    at step (/usr/share/nodejs/gensync/index.js:287:14)
    at /usr/share/nodejs/gensync/index.js:273:13
    at async.call.result.err.err (/usr/share/nodejs/gensync/index.js:223:11)
    at /usr/share/nodejs/gensync/index.js:189:28
    at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read/context:96:3)


make[1]: *** [debian/rules:9: override_dh_auto_build] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:4: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1146328#10
Date:
2026-08-31 13:52:09 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
strophejs, 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 1146328@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 strophejs 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:20:46 +0200
Source: strophejs
Architecture: source
Version: 4.0.0-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Changed-By: Xavier Guimard <yadd@debian.org>
Closes: 1146328
Changes:
 strophejs (4.0.0-3) unstable; urgency=medium
 .
   * Team upload
   * Fix build with Babel 8 (Closes: #1146328)
Checksums-Sha1:
 3537429f2995affe75dd26cfd08f8410a7477077 2198 strophejs_4.0.0-3.dsc
 7c9b906f763776369a8a7300137a6ec1b198eb76 24096 strophejs_4.0.0-3.debian.tar.xz
Checksums-Sha256:
 c79f845cf538ab35b68c8250e5dfd386d31c18b8bc2b950b6a37e2d41e551002 2198 strophejs_4.0.0-3.dsc
 ef03e004f03ee537b6dffbc0afd1c952d2431917b57b9e348d9082241ad64fdb 24096 strophejs_4.0.0-3.debian.tar.xz
Files:
 1a72173ae0caa4aa792ca154013d96c5 2198 javascript optional strophejs_4.0.0-3.dsc
 5f82a148b0361a7a989101342e1173fe 24096 javascript optional strophejs_4.0.0-3.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEAN/li4tVV3nRAF7J9tdMp8mZ7ukFAmqVgH8ACgkQ9tdMp8mZ
7umblA/+PCGU8kiHaF39EA1TgdD+5dqfG6mg/cFHA6zlxZpLDdo0xeJvv72OBJev
qonW2t4qRif8pCDCRlFaRJzgpNhc38nsx5sdm5igGKZodjinydhaexoHOysJ+h+T
3ghWsC6qqD+6gI8gvSOgXSIKI333zeTqV2U7mYFR5WZY/WVDvkMiUs1kR7cruBcz
HPdS+zr2NAUhd/+PWbtwb40hh6YRLHnv9SY8FctRwqU6eD+TDdZmI3qwKCOL2GWQ
f9tz8Xc+4Zf+gX8BefQlNFxXZIN9BugKSTTAASXONdn2+znENfJHcpPTkUa+unqa
WDckEOTszp35JZ7RTHt6PtxycErJKvClA6kaG8n86hDOt5QeBUxpdPIAqp59W39v
t6pVGbNsq6fNh7fM/iN1iGKExx+iw4t2sLfUKEW9dNkgFfLWUb4MQfbW/auR0Yjt
jDHfp4A0ABNabvchiWgsY8oXXEshoGqxCSkdPpRSNsdRKa0WdgOwTn2HMw/PR1rC
9+rbgQNrLJsx2WYrdoS+J/yu6h+qin4gPfaoNeCMGXMRvoPbY7PHICn0P736rxEH
iGca/SSrqCTzL/BvYxBBYQpXOJ/Ch3x3dBrNEOeg4huWUWSahFMag9OzgUthf8y9
TOnB54cSMxwYXe3K3nhkzk7aJPHby9GYyJVr0MHzhaxJMyV3GJs=
=y2GX
-----END PGP SIGNATURE-----