[Pkg-javascript-devel] Bug#1015214: node-canvas-confetti: FTBFS dh_auto_test SyntaxError: Cannot use import statement outside a module
    Jérémy Lal 
    kapouer at melix.org
       
    Sun Jul 17 20:36:19 BST 2022
    
    
  
Source: node-canvas-confetti
Version: 1.5.1-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source
In debian/unstable,
Here's the log
dh binary
   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
+ node build/build.js
   dh_auto_test --buildsystem=nodejs
	mkdir -p node_modules
	ln -s ../. node_modules/canvas-confetti
	/bin/sh -ex debian/tests/pkg-js/test
+ cd test
+ ava --verbose --serial
  Uncaught exception in test/index.test.js
  SyntaxError: Cannot use import statement outside a module
  ✖ test/index.test.js exited with a non-zero exit code: 1
  Uncaught exception in test/ssr.test.js
  SyntaxError: Cannot use import statement outside a module
  ✖ test/ssr.test.js exited with a non-zero exit code: 1
  ─
  2 uncaught exceptions
dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 5.18.0-2-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
    
    
More information about the Pkg-javascript-devel
mailing list