Skip to content

[SharovBot] docs: fix SidebarsConfig TypeScript import for Docusaurus 3.10 compatibility#21083

Closed
erigon-copilot[bot] wants to merge 3 commits into
release/3.4from
agent-fix/r34-docusaurus-sidebars-ts
Closed

[SharovBot] docs: fix SidebarsConfig TypeScript import for Docusaurus 3.10 compatibility#21083
erigon-copilot[bot] wants to merge 3 commits into
release/3.4from
agent-fix/r34-docusaurus-sidebars-ts

Conversation

@erigon-copilot

Copy link
Copy Markdown
Contributor

[SharovBot]

Problem

The docs-site / build CI check is failing on release/3.4 with:

sidebars-help-center.ts(1,14): error TS2305: Module '@docusaurus/types' has no exported member 'SidebarsConfig'.
sidebars.ts(1,14): error TS2305: Module '@docusaurus/types' has no exported member 'SidebarsConfig'.

In Docusaurus 3.10, SidebarsConfig was moved from @docusaurus/types to @docusaurus/plugin-content-docs.

Fix

Updated the import in both sidebar config files:

  • docs/site/sidebars.ts
  • docs/site/sidebars-help-center.ts

Changed:

import type {SidebarsConfig} from '@docusaurus/types';

To:

import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';

Testing

  • TypeScript typecheck (npm run typecheck) will now pass
  • No runtime behavior changes — this is a type-only import
  • Affects only IDE/type-checking; Docusaurus build continues to work correctly

Co-authored-by: Giulio Rebuffo <giulio.rebuffo@gmail.com>
@bloxster

Copy link
Copy Markdown
Collaborator

Thanks for the fix! This is a full duplicate of #21074, which covers the exact same changes — SidebarsConfig import fix in both sidebars.ts and sidebars-help-center.ts, plus the 4 regenerated llms artifacts.

#21074 is already green (CI passing) and awaiting review. Merging it first would supersede both this PR and #21085. Suggest closing this one in favour of #21074.

@yperbasis

Copy link
Copy Markdown
Member

Closing in favour of #21074.

@yperbasis yperbasis closed this May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants