[Pkg-javascript-devel] Bug#959592: node-i18next-xhr-backend: FTBFS: Error: Plugin/Preset files are not allowed to export objects, only functions. In /usr/share/nodejs/babel-preset-stage-0/lib/index.js
Lucas Nussbaum
lucas at debian.org
Sun May 3 13:57:43 BST 2020
Source: node-i18next-xhr-backend
Version: 3.2.2+ds-2
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20200501 ftbfs-bullseye
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> dpkg-buildpackage
> -----------------
>
> Command: dpkg-buildpackage -us -uc -sa -rfakeroot
> dpkg-buildpackage: info: source package node-i18next-xhr-backend
> dpkg-buildpackage: info: source version 3.2.2+ds-2
> dpkg-buildpackage: info: source distribution unstable
> dpkg-buildpackage: info: source changed by Xavier Guimard <yadd at debian.org>
> dpkg-source --before-build .
> dpkg-buildpackage: info: host architecture amd64
> debian/rules clean
> dh clean --with nodejs
> dh_auto_clean --buildsystem=nodejs
> rm -rf ./node_modules/.cache
> dh_clean
> dpkg-source -b .
> dpkg-source: info: using source format '3.0 (quilt)'
> dpkg-source: info: building node-i18next-xhr-backend using existing ./node-i18next-xhr-backend_3.2.2+ds.orig.tar.xz
> dpkg-source: info: using patch list from debian/patches/series
> dpkg-source: info: building node-i18next-xhr-backend in node-i18next-xhr-backend_3.2.2+ds-2.debian.tar.xz
> dpkg-source: info: building node-i18next-xhr-backend in node-i18next-xhr-backend_3.2.2+ds-2.dsc
> debian/rules binary
> dh binary --with nodejs
> dh_update_autotools_config
> dh_autoreconf
> dh_auto_configure --buildsystem=nodejs
> dh_auto_build --buildsystem=nodejs
> Found debian/nodejs/./build
> cd ./. && sh -ex debian/nodejs/./build
> + rollup -c
>
> ./src/index.js → ./dist/cjs/i18nextXHRBackend.js...
> [!] (babel plugin) Error: Plugin/Preset files are not allowed to export objects, only functions. In /usr/share/nodejs/babel-preset-stage-0/lib/index.js
> src/index.js
> Error: Plugin/Preset files are not allowed to export objects, only functions. In /usr/share/nodejs/babel-preset-stage-0/lib/index.js
> at createDescriptor (/usr/share/nodejs/@babel/core/lib/config/config-descriptors.js:178:11)
> at items.map (/usr/share/nodejs/@babel/core/lib/config/config-descriptors.js:109:50)
> at Array.map (<anonymous>)
> at createDescriptors (/usr/share/nodejs/@babel/core/lib/config/config-descriptors.js:109:29)
> at createPresetDescriptors (/usr/share/nodejs/@babel/core/lib/config/config-descriptors.js:101:10)
> at presets (/usr/share/nodejs/@babel/core/lib/config/config-descriptors.js:47:19)
> at mergeChainOpts (/usr/share/nodejs/@babel/core/lib/config/config-chain.js:320:26)
> at /usr/share/nodejs/@babel/core/lib/config/config-chain.js:283:7
> at buildRootChain (/usr/share/nodejs/@babel/core/lib/config/config-chain.js:120:22)
> at loadPrivatePartialConfig (/usr/share/nodejs/@babel/core/lib/config/partial.js:85:55)
>
> dh_auto_build: error: cd ./. && sh -ex debian/nodejs/./build returned exit code 1
> make: *** [debian/rules:8: binary] Error 25
The full build log is available from:
http://qa-logs.debian.net/2020/05/01/node-i18next-xhr-backend_3.2.2+ds-2_unstable.log
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.
More information about the Pkg-javascript-devel
mailing list