Skip to content

npm run typecheck fails on main #712

Description

@euisuh

Description

npm run typecheck currently fails on a clean main checkout of kserve/website.

This was found while validating a docs-only PR. The failure reproduces on main, so it is unrelated to that docs change.

Steps to Reproduce

git checkout main
npm install --ignore-scripts --no-audit --no-fund
npm run typecheck

Actual Behavior

tsc exits with errors:

node_modules/docusaurus-plugin-openapi-docs/src/types.ts(8,32): error TS2307: Cannot find module '@docusaurus/plugin-content-docs/src/sidebars/types' or its corresponding type declarations.
node_modules/docusaurus-plugin-openapi-docs/src/types.ts(24,8): error TS2307: Cannot find module '@docusaurus/plugin-content-docs-types' or its corresponding type declarations.
src/components/QuickInstallCommand.tsx(11,6): error TS2322: Type '{ children: Element[]; groupId: string; }' is not assignable to type 'IntrinsicAttributes & Props'.
  Property 'children' does not exist on type 'IntrinsicAttributes & Props'.
src/components/QuickInstallCommand.tsx(12,8): error TS2322: Type '{ children: Element; value: string; label: string; default: true; }' is not assignable to type 'IntrinsicAttributes & Props'.
  Property 'children' does not exist on type 'IntrinsicAttributes & Props'.
src/components/QuickInstallCommand.tsx(17,8): error TS2322: Type '{ children: Element; value: string; label: string; }' is not assignable to type 'IntrinsicAttributes & Props'.
  Property 'children' does not exist on type 'IntrinsicAttributes & Props'.

Expected Behavior

npm run typecheck should pass on main or the documented validation command should be updated.

Environment

  • Repo: kserve/website
  • Commit tested: ec4c0cb4e545cb868f2493ec7d9c6ae7c509d273
  • Node: v26.0.0
  • npm: 11.12.1

Additional Context

npm run build completed successfully in the same checkout, so this appears limited to the TypeScript check rather than the Docusaurus production build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions