[Pkg-javascript-devel] Bug#1134298: node-miragejs: FTBFS: Error: Unexpected token (Note that you need plugins to import files that are not JavaScript)
Santiago Vila
sanvila at debian.org
Sat Apr 18 18:32:11 BST 2026
Package: src:node-miragejs
Version: 0.1.46+~cs5.6.11-1
Severity: serious
Tags: ftbfs forky sid
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/202604/
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-miragejs, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean
dh_auto_clean --buildsystem=nodejs
rm -rf ./node_modules/.cache ./.nyc_output
rm -rf fake-xml-http-request/node_modules/.cache fake-xml-http-request/.nyc_output
rm -rf miragejs-pretender-node-polyfill/node_modules/.cache miragejs-pretender-node-polyfill/.nyc_output
rm -rf pretender/node_modules/.cache pretender/.nyc_output
rm ./node_modules/.cache
rm fake-xml-http-request/node_modules/.cache
rm miragejs-pretender-node-polyfill/node_modules/.cache
rm pretender/node_modules/.cache
rm ./node_modules/.cache
unlink node_modules/fake-xml-http-request
unlink node_modules/@miragejs/pretender-node-polyfill
unlink node_modules/pretender
dh_clean
debian/rules binary
dh binary
dh_update_autotools_config
dh_autoreconf
dh_auto_configure --buildsystem=nodejs
Link node_modules/fake-xml-http-request -> ../fake-xml-http-request
Link node_modules/@miragejs/pretender-node-polyfill -> ../../miragejs-pretender-node-polyfill
Link node_modules/pretender -> ../pretender
dh_auto_build --buildsystem=nodejs
Found debian/nodejs/pretender/build
cd ./pretender && sh -ex ../debian/nodejs/pretender/build
+ mkdir -p node_modules
+ cp -a /usr/share/nodejs/whatwg-fetch node_modules/
+ rollup -c
[36m
[1msrc/index.ts[22m â [1m./dist/pretender.js, ./dist/pretender.es.js[22m...[39m
[1m[31m[!] [1mRollupError: Unexpected token (Note that you need plugins to import files that are not JavaScript)[22m[1m[39m[22m
src/parse-url.ts (19:36)
[2m17: * }
18: */
19: export default function parseURL(url: string) {
^
20: let parsedUrl = new urlParse(url);[22m
[2m at error (/usr/share/nodejs/rollup/dist/shared/rollup.js:321:30)
at Module.error (/usr/share/nodejs/rollup/dist/shared/rollup.js:15310:16)
at Module.tryParse (/usr/share/nodejs/rollup/dist/shared/rollup.js:16041:25)
at Module.setSource (/usr/share/nodejs/rollup/dist/shared/rollup.js:15642:39)
at ModuleLoader.addModuleSource (/usr/share/nodejs/rollup/dist/shared/rollup.js:26213:20)[22m
dh_auto_build: error: cd ./pretender && sh -ex ../debian/nodejs/pretender/build returned exit code 1
make: *** [debian/rules:5: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------
More information about the Pkg-javascript-devel
mailing list