[Pkg-javascript-devel] Bug#1135430: node-jest: FTBFS: SyntaxError: The requested module 'read-pkg' does not provide an export named 'sync'

Santiago Vila sanvila at debian.org
Sat May 2 00:13:28 BST 2026


Package: src:node-jest
Version: 29.6.2~ds5+~cs73.45.28-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-jest, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean
   debian/rules override_dh_auto_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_clean --buildsystem=nodejs
/!\ website/package.json not found
Unable to load website 
./lerna.json found

workspaces field found in package.json

Found debian/nodejs/additional_components
	rm -rf packages/jest/node_modules/.cache packages/jest/.nyc_output
	rm -rf babel-preset-moxy/node_modules/.cache babel-preset-moxy/.nyc_output
	rm -rf bcoe-v8-coverage/node_modules/.cache bcoe-v8-coverage/.nyc_output

[... snipped ...]

Link ./node_modules/detect-newline -> /usr/share/nodejs/detect-newline
Link ./node_modules/emittery -> /usr/share/nodejs/emittery
Link ./node_modules/execa -> /usr/share/nodejs/execa
Link ./node_modules/fast-json-stable-stringify -> /usr/share/nodejs/fast-json-stable-stringify
Link ./node_modules/glob -> /usr/share/nodejs/glob
Link ./node_modules/graceful-fs -> /usr/share/nodejs/graceful-fs
Link ./node_modules/is-generator-fn -> /usr/share/nodejs/is-generator-fn
Link ./node_modules/is-ci -> /usr/share/nodejs/is-ci
Link ./node_modules/@jridgewell/trace-mapping -> /usr/share/nodejs/@jridgewell/trace-mapping
Link ./node_modules/leven -> /usr/share/nodejs/leven
Link ./node_modules/micromatch -> /usr/share/nodejs/micromatch
Link ./node_modules/p-limit -> /usr/share/nodejs/p-limit
Link ./node_modules/pirates -> /usr/share/nodejs/pirates
Link ./node_modules/pure-rand -> /usr/share/nodejs/pure-rand
Link ./node_modules/read-pkg -> /usr/share/nodejs/read-pkg
Link ./node_modules/@sinclair/typebox -> /usr/share/nodejs/@sinclair/typebox
Link ./node_modules/slash -> /usr/share/nodejs/slash
Link ./node_modules/string-length -> /usr/share/nodejs/string-length
Link ./node_modules/strip-ansi -> /usr/share/nodejs/strip-ansi
Link ./node_modules/strip-bom -> /usr/share/nodejs/strip-bom
Link ./node_modules/strip-json-comments -> /usr/share/nodejs/strip-json-comments
Link ./node_modules/supports-color -> /usr/share/nodejs/supports-color
Link ./node_modules/ts-node -> /usr/share/nodejs/ts-node
Link ./node_modules/@tsconfig/node14 -> /usr/share/nodejs/@tsconfig/node14
Link ./node_modules/@types/babel__code-frame -> /usr/share/nodejs/@types/babel__code-frame
Link ./node_modules/@types/babel__core -> /usr/share/nodejs/@types/babel__core
Link ./node_modules/@types/babel__template -> /usr/share/nodejs/@types/babel__template
Link ./node_modules/@types/babel__traverse -> /usr/share/nodejs/@types/babel__traverse
Link ./node_modules/@types/chai -> /usr/share/nodejs/@types/chai
Link ./node_modules/@types/co -> /usr/share/nodejs/@types/co
Link ./node_modules/@types/convert-source-map -> /usr/share/nodejs/@types/convert-source-map
Link ./node_modules/@types/exit -> /usr/share/nodejs/@types/exit
Link ./node_modules/@types/fb-watchman -> /usr/share/nodejs/@types/fb-watchman
Not found
### @types/glob is required by debian/nodejs/./extlinks but not available
# Typescript definition detected, Fallback to main module
### You SHOULD update your debian/nodejs/./extlinks file!
Link ./node_modules/@types/graceful-fs -> /usr/share/nodejs/@types/graceful-fs
Link ./node_modules/@types/istanbul-lib-coverage -> /usr/share/nodejs/@types/istanbul-lib-coverage
Link ./node_modules/@types/istanbul-lib-instrument -> /usr/share/nodejs/@types/istanbul-lib-instrument
Link ./node_modules/@types/istanbul-lib-report -> /usr/share/nodejs/@types/istanbul-lib-report
Link ./node_modules/@types/istanbul-lib-source-maps -> /usr/share/nodejs/@types/istanbul-lib-source-maps
Link ./node_modules/@types/istanbul-reports -> /usr/share/nodejs/@types/istanbul-reports
Link ./node_modules/@types/jsdom -> /usr/share/nodejs/@types/jsdom
Link ./node_modules/@types/merge-stream -> /usr/share/nodejs/@types/merge-stream
Link ./node_modules/@types/micromatch -> /usr/share/nodejs/@types/micromatch
Link ./node_modules/@types/node -> /usr/share/nodejs/@types/node
Link ./node_modules/@types/parse-json -> /usr/share/nodejs/@types/parse-json
Link ./node_modules/@types/picomatch -> /usr/share/nodejs/@types/picomatch
Link ./node_modules/@types/prompts -> /usr/share/nodejs/@types/prompts
Link ./node_modules/@types/react-is -> /usr/share/nodejs/@types/react-is
Link ./node_modules/@types/resolve -> /usr/share/nodejs/@types/resolve
Not found
### @types/rimraf is required by debian/nodejs/./extlinks but not available
# Typescript definition detected, Fallback to main module
### You SHOULD update your debian/nodejs/./extlinks file!
Link ./node_modules/@types/semver -> /usr/share/nodejs/@types/semver
Link ./node_modules/@types/sinonjs__fake-timers -> /usr/share/nodejs/@types/sinonjs__fake-timers
Link ./node_modules/@types/source-map-support -> /usr/share/nodejs/@types/source-map-support
Link ./node_modules/@types/stack-utils -> /usr/share/nodejs/@types/stack-utils
Not found
### @types/supports-color is required by debian/nodejs/./extlinks but not available
# Typescript definition detected, Fallback to main module
### You SHOULD update your debian/nodejs/./extlinks file!
Link ./node_modules/@types/write-file-atomic -> /usr/share/nodejs/@types/write-file-atomic
Link ./node_modules/@types/yargs -> /usr/share/nodejs/@types/yargs
Link ./node_modules/uvu -> /usr/share/nodejs/uvu
Link ./node_modules/v8-to-istanbul -> /usr/share/nodejs/v8-to-istanbul
/!\ website/package.json not found
Unable to load website 
Link ./node_modules/supports-hyperlinks -> /usr/share/nodejs/supports-hyperlinks
Found debian/nodejs/additional_components
Link node_modules/babel-preset-moxy -> ../babel-preset-moxy
Link node_modules/@bcoe/v8-coverage -> ../../bcoe-v8-coverage
Link node_modules/collect-v8-coverage -> ../collect-v8-coverage
Link node_modules/dedent -> ../dedent
Link node_modules/import-local -> ../import-local
Link node_modules/jest-pnp-resolver -> ../jest-pnp-resolver
Link node_modules/jest-snapshot-serializer-raw -> ../jest-snapshot-serializer-raw
Link node_modules/jest-tobetype -> ../jest-tobetype
Link node_modules/natural-compare -> ../natural-compare
Link node_modules/natural-compare-lite -> ../natural-compare-lite
Link node_modules/p-each-series -> ../p-each-series
Link node_modules/p-reduce -> ../p-reduce
Link node_modules/babel-jest -> ../packages/babel-jest
Link node_modules/babel-plugin-jest-hoist -> ../packages/babel-plugin-jest-hoist
Link node_modules/babel-preset-jest -> ../packages/babel-preset-jest
Link node_modules/diff-sequences -> ../packages/diff-sequences
Link node_modules/expect -> ../packages/expect
Link node_modules/@jest/expect-utils -> ../../packages/expect-utils
Link node_modules/jest-changed-files -> ../packages/jest-changed-files
Link node_modules/jest-circus -> ../packages/jest-circus
Link node_modules/jest-cli -> ../packages/jest-cli
Link node_modules/jest-config -> ../packages/jest-config
Link node_modules/@jest/console -> ../../packages/jest-console
Link node_modules/@jest/core -> ../../packages/jest-core
Link node_modules/@jest/create-cache-key-function -> ../../packages/jest-create-cache-key-function
Link node_modules/jest-diff -> ../packages/jest-diff
Link node_modules/jest-docblock -> ../packages/jest-docblock
Link node_modules/jest-each -> ../packages/jest-each
Link node_modules/@jest/environment -> ../../packages/jest-environment
Link node_modules/jest-environment-jsdom -> ../packages/jest-environment-jsdom
Link node_modules/jest-environment-node -> ../packages/jest-environment-node
Link node_modules/@jest/expect -> ../../packages/jest-expect
Link node_modules/@jest/fake-timers -> ../../packages/jest-fake-timers
Link node_modules/jest-get-type -> ../packages/jest-get-type
Link node_modules/@jest/globals -> ../../packages/jest-globals
Link node_modules/jest-haste-map -> ../packages/jest-haste-map
Link node_modules/jest-jasmine2 -> ../packages/jest-jasmine2
Link node_modules/jest-leak-detector -> ../packages/jest-leak-detector
Link node_modules/jest-matcher-utils -> ../packages/jest-matcher-utils
Link node_modules/jest-message-util -> ../packages/jest-message-util
Link node_modules/jest-mock -> ../packages/jest-mock
Link node_modules/jest-phabricator -> ../packages/jest-phabricator
Link node_modules/jest-regex-util -> ../packages/jest-regex-util
Link node_modules/jest-repl -> ../packages/jest-repl
Link node_modules/@jest/reporters -> ../../packages/jest-reporters
Link node_modules/jest-resolve -> ../packages/jest-resolve
Link node_modules/jest-resolve-dependencies -> ../packages/jest-resolve-dependencies
Link node_modules/jest-runner -> ../packages/jest-runner
Link node_modules/jest-runtime -> ../packages/jest-runtime
Link node_modules/@jest/schemas -> ../../packages/jest-schemas
Link node_modules/jest-snapshot -> ../packages/jest-snapshot
Link node_modules/@jest/source-map -> ../../packages/jest-source-map
Link node_modules/@jest/test-result -> ../../packages/jest-test-result
Link node_modules/@jest/test-sequencer -> ../../packages/jest-test-sequencer
Link node_modules/@jest/transform -> ../../packages/jest-transform
Link node_modules/@jest/types -> ../../packages/jest-types
Link node_modules/jest-util -> ../packages/jest-util
Link node_modules/jest-validate -> ../packages/jest-validate
Link node_modules/jest-watcher -> ../packages/jest-watcher
Link node_modules/jest-worker -> ../packages/jest-worker
Link node_modules/pretty-format -> ../packages/pretty-format
Link node_modules/@jest/test-globals -> ../../packages/test-globals
Link node_modules/@jest/test-utils -> ../../packages/test-utils
Link node_modules/repl -> ../repl
Link node_modules/resolve.exports -> ../resolveexports
Link node_modules/throat -> ../throat
Link node_modules/@types/dedent -> ../../types-dedent
Link node_modules/@types/natural-compare -> ../../types-natural-compare
Link node_modules/@types/jest -> ../../typesjest
Link node_modules/@types/expect -> ../../debian/build_modules/@types/expect
Link node_modules/@types/jest-diff -> ../../debian/build_modules/@types/jest-diff
Link node_modules/@types/jest-haste-map -> ../../debian/build_modules/@types/jest-haste-map
Link node_modules/@types/jest-matcher-utils -> ../../debian/build_modules/@types/jest-matcher-utils
Link node_modules/@types/jest-resolve -> ../../debian/build_modules/@types/jest-resolve
Link node_modules/@types/jest__expect-utils -> ../../debian/build_modules/@types/jest__expect-utils
Link node_modules/@types/jest__schemas -> ../../debian/build_modules/@types/jest__schemas
Link node_modules/@types/jest__types -> ../../debian/build_modules/@types/jest__types
Link node_modules/@types/node-notifier -> ../../debian/build_modules/@types/node-notifier
Link node_modules/@types/prettier -> ../../debian/build_modules/@types/prettier
Link node_modules/@types/pretty-format -> ../../debian/build_modules/@types/pretty-format
Link node_modules/babel-plugin-replace-ts-export-assignment -> ../debian/build_modules/babel-plugin-replace-ts-export-assignment
Link node_modules/babel-plugin-typescript-strip-namespaces -> ../debian/build_modules/babel-plugin-typescript-strip-namespaces
Link node_modules/incident -> ../debian/build_modules/incident
Link node_modules/matched -> ../debian/build_modules/matched
Link node_modules/rollup-plugin-multi-input -> ../debian/build_modules/rollup-plugin-multi-input
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_build --buildsystem=nodejs
/!\ website/package.json not found
Unable to load website 
./lerna.json found

workspaces field found in package.json

Found debian/nodejs/additional_components
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
Found debian/nodejs/resolveexports/build
	cd ./resolveexports && sh -ex ../debian/nodejs/resolveexports/build
+ rollup -p @rollup/plugin-typescript -o dist/index.mjs -f es src/index.ts

src/index.ts → dist/index.mjs...
(!) Plugin typescript: @rollup/plugin-typescript TS5110: Option 'module' must be set to 'NodeNext' when option 'moduleResolution' is set to 'NodeNext'.
created dist/index.mjs in 1.2s
+ rollup -p @rollup/plugin-typescript -o dist/index.js -f cjs src/index.ts

src/index.ts → dist/index.js...
(!) Plugin typescript: @rollup/plugin-typescript TS5110: Option 'module' must be set to 'NodeNext' when option 'moduleResolution' is set to 'NodeNext'.
created dist/index.js in 1.2s
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
Found debian/nodejs/bcoe-v8-coverage/build
	cd ./bcoe-v8-coverage && sh -ex ../debian/nodejs/bcoe-v8-coverage/build
+ rm -rf dist
+ mkdir node_modules
+ pkgjs-ln tslib
tslib linked into node_modules
+ pkgjs-ln @types/mocha
@types/mocha linked into node_modules
+ ln -s ../../../debian/nodejs/bcoe-v8-coverage/node_modules/@types/node node_modules/@types/
+ rollup -c ../debian/bcoe-rollup-config.js

../bcoe-v8-coverage/src/lib/*.ts → ../bcoe-v8-coverage/dist/lib...
(!) Plugin typescript: @rollup/plugin-typescript: Rollup requires that TypeScript produces ES Modules. Unfortunately your configuration specifies a "module" other than "esnext". Unless you know what you're doing, please change "module" to "esnext" in the target tsconfig.json file or plugin options.
(!) Plugin typescript: @rollup/plugin-typescript: Rollup 'sourcemap' option must be set to generate source maps.
created ../bcoe-v8-coverage/dist/lib in 618ms
+ cp ../debian/nodejs/def-bcoe-v8-coverage/ascii.d.ts ../debian/nodejs/def-bcoe-v8-coverage/clone.d.ts ../debian/nodejs/def-bcoe-v8-coverage/compare.d.ts ../debian/nodejs/def-bcoe-v8-coverage/index.d.ts ../debian/nodejs/def-bcoe-v8-coverage/merge.d.ts ../debian/nodejs/def-bcoe-v8-coverage/normalize.d.ts ../debian/nodejs/def-bcoe-v8-coverage/range-tree.d.ts ../debian/nodejs/def-bcoe-v8-coverage/types.d.ts dist/lib/
+ rm -rf dist/lib/src
+ mv dist/lib/lib/ascii.js dist/lib/lib/clone.js dist/lib/lib/compare.js dist/lib/lib/index.js dist/lib/lib/merge.js dist/lib/lib/normalize.js dist/lib/lib/range-tree.js dist/lib/lib/types.js dist/lib
+ rm -fr dist/lib/lib
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
NODE_PATH=debian/build_modules node ./scripts/build.mjs
file:///<<BUILDDIR>>/node-jest-29.6.2%7Eds5+%7Ecs73.45.28/scripts/buildUtils.mjs:14
import {sync as readPkg} from 'read-pkg';
        ^^^^
SyntaxError: The requested module 'read-pkg' does not provide an export named 'sync'
    at #asyncInstantiate (node:internal/modules/esm/module_job:326:21)
    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
    at async ModuleJob.run (node:internal/modules/esm/module_job:429:5)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:639:26)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5)

Node.js v24.15.0
make[1]: *** [debian/rules:20: override_dh_auto_build] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:13: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------



More information about the Pkg-javascript-devel mailing list