[Debian-pan-maintainers] Bug#1081223: node-microsoft-fast: FTBFS: error TS2307: Cannot find module '@microsoft/fast-element' or its corresponding type declarations.

Santiago Vila sanvila at debian.org
Mon Sep 9 17:16:22 BST 2024


Package: src:node-microsoft-fast
Version: 0~20240320+ds1-1
Severity: serious
Tags: ftbfs

Dear maintainer:

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

--------------------------------------------------------------------------------
[...]
  debian/rules binary
dh binary
    dh_update_autotools_config
    dh_autoreconf
    dh_auto_configure --buildsystem=nodejs
./lerna.json found

workspaces field found in package.json

Found debian/nodejs/additional_components
Link ./node_modules/parse5 -> /usr/share/nodejs/parse5
Link ./node_modules/@playwright/test -> /usr/share/nodejs/@playwright/test
Link ./node_modules/@rollup/plugin-babel -> /usr/share/nodejs/@rollup/plugin-babel
Link ./node_modules/@rollup/plugin-commonjs -> /usr/share/nodejs/@rollup/plugin-commonjs
Link ./node_modules/@rollup/plugin-node-resolve -> /usr/share/nodejs/@rollup/plugin-node-resolve
Link ./node_modules/rollup-plugin-terser -> /usr/share/nodejs/rollup-plugin-terser
Link ./node_modules/@rollup/plugin-typescript -> /usr/share/nodejs/@rollup/plugin-typescript
Link ./node_modules/tslib -> /usr/share/nodejs/tslib
Link ./node_modules/@types/chai -> /usr/share/nodejs/@types/chai
Link ./node_modules/@types/mocha -> /usr/share/nodejs/@types/mocha
Link ./node_modules/@types/node -> /usr/share/nodejs/@types/node
Link ./node_modules/@types/qs -> /usr/share/nodejs/@types/qs
Link ./node_modules/@types/react -> /usr/share/nodejs/@types/react
Link ./node_modules/@types/react-dom -> /usr/share/nodejs/@types/react-dom
Link ./node_modules/@types/webpack-env -> /usr/share/nodejs/@types/webpack-env
Found debian/nodejs/additional_components
Link node_modules/exenv-es6 -> ../exenv-es6
Link node_modules/@microsoft/fast-colors -> ../../packages/utilities/fast-colors
Link node_modules/@microsoft/fast-react-wrapper -> ../../packages/utilities/fast-react-wrapper
Link node_modules/@microsoft/fast-web-utilities -> ../../packages/utilities/fast-web-utilities
Link node_modules/@microsoft/fast-element -> ../../packages/web-components/fast-element
Link node_modules/@microsoft/fast-foundation -> ../../packages/web-components/fast-foundation
Link node_modules/@microsoft/fast-router -> ../../packages/web-components/fast-router
Link node_modules/tabbable -> ../tabbable
Link node_modules/@floating-ui/core -> ../../debian/build_modules/@floating-ui/core
Link node_modules/@floating-ui/dom -> ../../debian/build_modules/@floating-ui/dom
Link node_modules/@storybook/csf -> ../../debian/build_modules/@storybook/csf
Link node_modules/@types/chai-spies -> ../../debian/build_modules/@types/chai-spies
    debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
ALIASES="api-extractor,/usr/bin/true babel,/usr/bin/babeljs" pkgjs-lerna run build
# exenv-es6
Target build is not defined in package.json
# packages/utilities/fast-colors

> @microsoft/fast-colors at 5.3.1 build
> tsc -p ./tsconfig.build.json && pkgjs doc 

# packages/web-components/fast-element

> @microsoft/fast-element at 2.0.0-beta.26 build
> pkgjs build:tsc && pkgjs build:rollup && pkgjs doc 

# tabbable

> tabbable at 6.2.0 build
> pkgjs run clean && pkgjs run compile 


> tabbable at 6.2.0 clean
> rm -rf ./dist 


> tabbable at 6.2.0 compile
> pkgjs run compile:esm && pkgjs run compile:cjs && pkgjs run compile:umd 


> tabbable at 6.2.0 compile:esm
> BUILD_ENV=esm BABEL_ENV=esm rollup -c --bundleConfigAsCjs 

esm

./src/index.js → dist/index.esm.js...
created dist/index.esm.js in 672ms

./src/index.js → dist/index.esm.min.js...
created dist/index.esm.min.js in 568ms

> tabbable at 6.2.0 compile:cjs
> BUILD_ENV=cjs BABEL_ENV=es5 rollup -c --bundleConfigAsCjs 

cjs

./src/index.js → dist/index.js...
created dist/index.js in 651ms

./src/index.js → dist/index.min.js...
created dist/index.min.js in 588ms

> tabbable at 6.2.0 compile:umd
> BUILD_ENV=umd BABEL_ENV=es5 rollup -c --bundleConfigAsCjs 

umd

./src/index.js → dist/index.umd.js...
created dist/index.umd.js in 688ms

./src/index.js → dist/index.umd.min.js...
created dist/index.umd.min.js in 574ms
# packages/utilities/fast-react-wrapper

> @microsoft/fast-react-wrapper at 1.0.0-alpha.27 build
> tsc -p ./tsconfig.json && pkgjs doc 

src/index.spec.tsx(1,107): error TS2307: Cannot find module '@microsoft/fast-element' or its corresponding type declarations.
src/index.spec.tsx(4,35): error TS2307: Cannot find module '@microsoft/fast-element/testing.js' or its corresponding type declarations.
src/index.spec.tsx(115,35): error TS2339: Property 'compose' does not exist on type 'typeof DefinitionTestElement'.
src/index.spec.tsx(420,10): error TS2604: JSX element type 'WarningComponent' does not have any construct or call signatures.
src/index.ts(6,8): error TS2307: Cannot find module '@microsoft/fast-element' or its corresponding type declarations.
make[1]: *** [debian/rules:13: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:10: 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/202409/

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 Debian-pan-maintainers mailing list