[Pkg-javascript-devel] Bug#1078890: node-mdn-browser-compat-data: FTBFS: TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /<<PKGBUILDDIR>>/scripts/generate-types.ts

Santiago Vila sanvila at debian.org
Sat Aug 17 14:40:12 BST 2024


Package: src:node-mdn-browser-compat-data
Version: 5.2.20+~3.33.0-1
Severity: serious
Control: close -1 5.5.28+~4.8.0-2
Tags: ftbfs bookworm

Dear maintainer:

During a rebuild of all packages in bookworm, your package failed to build:

--------------------------------------------------------------------------------
[...]
  debian/rules binary
dh binary --with nodejs
    dh_update_autotools_config
    dh_autoreconf
    dh_auto_configure --buildsystem=nodejs
Link ./node_modules/chalk -> /usr/share/nodejs/chalk
Link ./node_modules/compare-versions -> /usr/share/nodejs/compare-versions
Link ./node_modules/fast-json-stable-stringify -> /usr/share/nodejs/fast-json-stable-stringify
Link ./node_modules/ts-node -> /usr/share/nodejs/ts-node
Link ./node_modules/@types/mocha -> /usr/share/nodejs/@types/mocha
Link ./node_modules/@types/node -> /usr/share/nodejs/@types/node
Link node_modules/browser-specs -> ../browser-specs
Link node_modules/@apidevtools/json-schema-ref-parser -> ../../debian/build_modules/@apidevtools/json-schema-ref-parser
Link node_modules/@jsdevtools/ono -> ../../debian/build_modules/@jsdevtools/ono
Link node_modules/call-me-maybe -> ../debian/build_modules/call-me-maybe
Link node_modules/es-main -> ../debian/build_modules/es-main
Link node_modules/fdir -> ../debian/build_modules/fdir
Link node_modules/json-schema-ref-parser -> ../debian/build_modules/json-schema-ref-parser
Link node_modules/json-schema-to-typescript -> ../debian/build_modules/json-schema-to-typescript
    debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
ts-node scripts/generate-types.ts
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /<<PKGBUILDDIR>>/scripts/generate-types.ts
     at new NodeError (node:internal/errors:405:5)
     at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:136:11)
     at defaultGetFormat (node:internal/modules/esm/get_format:182:36)
     at defaultLoad (node:internal/modules/esm/load:101:20)
     at nextLoad (node:internal/modules/esm/hooks:864:28)
     at load (/usr/share/nodejs/ts-node/dist/child/child-loader.js:19:122)
     at nextLoad (node:internal/modules/esm/hooks:864:28)
     at Hooks.load (node:internal/modules/esm/hooks:447:26)
     at MessagePort.handleMessage (node:internal/modules/esm/worker:196:24)
     at [nodejs.internal.kHybridDispatch] (node:internal/event_target:786:20) {
   code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
make[1]: *** [debian/rules:11: override_dh_auto_build] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:8: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/bookworm/

About the archive rebuild: The build was made on virtual machines
of type m6a.large and r6a.large from AWS, using sbuild and a
reduced chroot with only build-essential packages.

If you could not 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 affects, so that this is still visible in the BTS web
page for this package.

Thanks.



More information about the Pkg-javascript-devel mailing list