[Pkg-javascript-devel] Bug#1135425: node-fs-extra: FTBFS: TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
Santiago Vila
sanvila at debian.org
Sat May 2 00:13:20 BST 2026
Package: src:node-fs-extra
Version: 10.1.0+~9.0.13-2
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/202605/
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-fs-extra, 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 types-fs-extra/node_modules/.cache types-fs-extra/.nyc_output
rm ./node_modules/.cache
rm types-fs-extra/node_modules/.cache
rm ./node_modules/.cache
unlink node_modules/@types/fs-extra
dh_clean
debian/rules binary
dh binary
dh_update_autotools_config
dh_autoreconf
dh_auto_configure --buildsystem=nodejs
[... snipped ...]
8) fse-ensure-symlink
ensureSymlinkSync()
should create symlink file using src ./foo.txt and dst ./real-alpha/real-beta/real-gamma/symlink.txt:
TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
at Object.symlinkSync (node:fs:1851:3)
at createSymlinkSync (lib/ensure/symlink.js:74:25)
at Context.<anonymous> (lib/ensure/__tests__/symlink.test.js:211:7)
at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
at /usr/share/nodejs/mocha/lib/runner.js:842:12
at next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
at /usr/share/nodejs/mocha/lib/runner.js:644:7
at next (/usr/share/nodejs/mocha/lib/runner.js:527:14)
at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:612:5)
at process.processImmediate (node:internal/timers:504:21)
9) fse-ensure-symlink
ensureSymlinkSync()
should create symlink file using src ./foo.txt and dst ./alpha/symlink.txt:
TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
at Object.symlinkSync (node:fs:1851:3)
at createSymlinkSync (lib/ensure/symlink.js:76:13)
at Context.<anonymous> (lib/ensure/__tests__/symlink.test.js:211:7)
at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
at /usr/share/nodejs/mocha/lib/runner.js:842:12
at next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
at /usr/share/nodejs/mocha/lib/runner.js:644:7
at next (/usr/share/nodejs/mocha/lib/runner.js:527:14)
at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:612:5)
at process.processImmediate (node:internal/timers:504:21)
10) fse-ensure-symlink
ensureSymlinkSync()
should create symlink file using src ./foo.txt and dst ./alpha/beta/symlink.txt:
TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
at Object.symlinkSync (node:fs:1851:3)
at createSymlinkSync (lib/ensure/symlink.js:76:13)
at Context.<anonymous> (lib/ensure/__tests__/symlink.test.js:211:7)
at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
at /usr/share/nodejs/mocha/lib/runner.js:842:12
at next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
at /usr/share/nodejs/mocha/lib/runner.js:644:7
at next (/usr/share/nodejs/mocha/lib/runner.js:527:14)
at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:612:5)
at process.processImmediate (node:internal/timers:504:21)
11) fse-ensure-symlink
ensureSymlinkSync()
should create symlink file using src ./foo.txt and dst ./alpha/beta/gamma/symlink.txt:
TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
at Object.symlinkSync (node:fs:1851:3)
at createSymlinkSync (lib/ensure/symlink.js:76:13)
at Context.<anonymous> (lib/ensure/__tests__/symlink.test.js:211:7)
at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
at /usr/share/nodejs/mocha/lib/runner.js:842:12
at next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
at /usr/share/nodejs/mocha/lib/runner.js:644:7
at next (/usr/share/nodejs/mocha/lib/runner.js:527:14)
at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:612:5)
at process.processImmediate (node:internal/timers:504:21)
12) fse-ensure-symlink
ensureSymlinkSync()
should create symlink dir using src ./dir-foo and dst ./symlink-dir-foo:
TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
at Object.symlinkSync (node:fs:1851:3)
at createSymlinkSync (lib/ensure/symlink.js:74:25)
at Context.<anonymous> (lib/ensure/__tests__/symlink.test.js:261:7)
at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
at /usr/share/nodejs/mocha/lib/runner.js:842:12
at next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
at /usr/share/nodejs/mocha/lib/runner.js:644:7
at next (/usr/share/nodejs/mocha/lib/runner.js:527:14)
at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:612:5)
at process.processImmediate (node:internal/timers:504:21)
13) fse-ensure-symlink
ensureSymlinkSync()
should create symlink dir using src ../dir-bar and dst ./dir-foo/symlink-dir-bar:
TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
at Object.symlinkSync (node:fs:1851:3)
at createSymlinkSync (lib/ensure/symlink.js:74:25)
at Context.<anonymous> (lib/ensure/__tests__/symlink.test.js:261:7)
at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
at /usr/share/nodejs/mocha/lib/runner.js:842:12
at next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
at /usr/share/nodejs/mocha/lib/runner.js:644:7
at next (/usr/share/nodejs/mocha/lib/runner.js:527:14)
at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:612:5)
at process.processImmediate (node:internal/timers:504:21)
14) fse-ensure-symlink
ensureSymlinkSync()
should create symlink dir using src ./dir-bar and dst ./dir-foo/symlink-dir-bar:
TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
at Object.symlinkSync (node:fs:1851:3)
at createSymlinkSync (lib/ensure/symlink.js:74:25)
at Context.<anonymous> (lib/ensure/__tests__/symlink.test.js:261:7)
at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
at /usr/share/nodejs/mocha/lib/runner.js:842:12
at next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
at /usr/share/nodejs/mocha/lib/runner.js:644:7
at next (/usr/share/nodejs/mocha/lib/runner.js:527:14)
at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:612:5)
at process.processImmediate (node:internal/timers:504:21)
15) fse-ensure-symlink
ensureSymlinkSync()
should create symlink dir using src ./dir-bar and dst ./empty-dir/symlink-dir-bar:
TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
at Object.symlinkSync (node:fs:1851:3)
at createSymlinkSync (lib/ensure/symlink.js:74:25)
at Context.<anonymous> (lib/ensure/__tests__/symlink.test.js:261:7)
at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
at /usr/share/nodejs/mocha/lib/runner.js:842:12
at next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
at /usr/share/nodejs/mocha/lib/runner.js:644:7
at next (/usr/share/nodejs/mocha/lib/runner.js:527:14)
at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:612:5)
at process.processImmediate (node:internal/timers:504:21)
16) fse-ensure-symlink
ensureSymlinkSync()
should create symlink dir using src ./dir-bar and dst ./real-alpha/symlink-dir-bar:
TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
at Object.symlinkSync (node:fs:1851:3)
at createSymlinkSync (lib/ensure/symlink.js:74:25)
at Context.<anonymous> (lib/ensure/__tests__/symlink.test.js:261:7)
at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
at /usr/share/nodejs/mocha/lib/runner.js:842:12
at next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
at /usr/share/nodejs/mocha/lib/runner.js:644:7
at next (/usr/share/nodejs/mocha/lib/runner.js:527:14)
at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:612:5)
at process.processImmediate (node:internal/timers:504:21)
17) fse-ensure-symlink
ensureSymlinkSync()
should create symlink dir using src ./dir-bar and dst ./real-alpha/real-beta/symlink-dir-bar:
TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
at Object.symlinkSync (node:fs:1851:3)
at createSymlinkSync (lib/ensure/symlink.js:74:25)
at Context.<anonymous> (lib/ensure/__tests__/symlink.test.js:261:7)
at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
at /usr/share/nodejs/mocha/lib/runner.js:842:12
at next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
at /usr/share/nodejs/mocha/lib/runner.js:644:7
at next (/usr/share/nodejs/mocha/lib/runner.js:527:14)
at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:612:5)
at process.processImmediate (node:internal/timers:504:21)
18) fse-ensure-symlink
ensureSymlinkSync()
should create symlink dir using src ./dir-bar and dst ./real-alpha/real-beta/real-gamma/symlink-dir-bar:
TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
at Object.symlinkSync (node:fs:1851:3)
at createSymlinkSync (lib/ensure/symlink.js:74:25)
at Context.<anonymous> (lib/ensure/__tests__/symlink.test.js:261:7)
at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
at /usr/share/nodejs/mocha/lib/runner.js:842:12
at next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
at /usr/share/nodejs/mocha/lib/runner.js:644:7
at next (/usr/share/nodejs/mocha/lib/runner.js:527:14)
at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:612:5)
at process.processImmediate (node:internal/timers:504:21)
19) fse-ensure-symlink
ensureSymlinkSync()
should create symlink dir using src ./dir-foo and dst ./alpha/dir-foo:
TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
at Object.symlinkSync (node:fs:1851:3)
at createSymlinkSync (lib/ensure/symlink.js:76:13)
at Context.<anonymous> (lib/ensure/__tests__/symlink.test.js:261:7)
at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
at /usr/share/nodejs/mocha/lib/runner.js:842:12
at next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
at /usr/share/nodejs/mocha/lib/runner.js:644:7
at next (/usr/share/nodejs/mocha/lib/runner.js:527:14)
at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:612:5)
at process.processImmediate (node:internal/timers:504:21)
20) fse-ensure-symlink
ensureSymlinkSync()
should create symlink dir using src ./dir-foo and dst ./alpha/beta/dir-foo:
TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
at Object.symlinkSync (node:fs:1851:3)
at createSymlinkSync (lib/ensure/symlink.js:76:13)
at Context.<anonymous> (lib/ensure/__tests__/symlink.test.js:261:7)
at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
at /usr/share/nodejs/mocha/lib/runner.js:842:12
at next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
at /usr/share/nodejs/mocha/lib/runner.js:644:7
at next (/usr/share/nodejs/mocha/lib/runner.js:527:14)
at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:612:5)
at process.processImmediate (node:internal/timers:504:21)
21) fse-ensure-symlink
ensureSymlinkSync()
should create symlink dir using src ./dir-foo and dst ./alpha/beta/gamma/dir-foo:
TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
at Object.symlinkSync (node:fs:1851:3)
at createSymlinkSync (lib/ensure/symlink.js:76:13)
at Context.<anonymous> (lib/ensure/__tests__/symlink.test.js:261:7)
at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
at /usr/share/nodejs/mocha/lib/runner.js:842:12
at next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
at /usr/share/nodejs/mocha/lib/runner.js:644:7
at next (/usr/share/nodejs/mocha/lib/runner.js:527:14)
at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:612:5)
at process.processImmediate (node:internal/timers:504:21)
22) fse-ensure-symlink
ensureSymlinkSync()
should create symlink file using src /tmp/fs-extra/ensure-symlink/foo.txt and dst ./symlink.txt:
TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
at Object.symlinkSync (node:fs:1851:3)
at createSymlinkSync (lib/ensure/symlink.js:74:25)
at Context.<anonymous> (lib/ensure/__tests__/symlink.test.js:211:7)
at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
at /usr/share/nodejs/mocha/lib/runner.js:842:12
at next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
at /usr/share/nodejs/mocha/lib/runner.js:644:7
at next (/usr/share/nodejs/mocha/lib/runner.js:527:14)
at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:612:5)
at process.processImmediate (node:internal/timers:504:21)
23) fse-ensure-symlink
ensureSymlinkSync()
should create symlink file using src /tmp/fs-extra/ensure-symlink/dir-foo/foo.txt and dst ./symlink.txt:
TypeError [ERR_INVALID_ARG_VALUE]: The argument 'type' must be one of: 'dir', 'file', 'junction', null, undefined. Received [Function: callback]
at Object.symlinkSync (node:fs:1851:3)
at createSymlinkSync (lib/ensure/symlink.js:74:25)
at Context.<anonymous> (lib/ensure/__tests__/symlink.test.js:211:7)
at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
at /usr/share/nodejs/mocha/lib/runner.js:842:12
at next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
at /usr/share/nodejs/mocha/lib/runner.js:644:7
at next (/usr/share/nodejs/mocha/lib/runner.js:527:14)
at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:612:5)
at process.processImmediate (node:internal/timers:504:21)
dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 23
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------
More information about the Pkg-javascript-devel
mailing list