Skip to content

fix(docs): align docusaurus packages to 3.10.2 to fix docs build - #2079

Merged
leoniedickson merged 1 commit into
mainfrom
fix/docusaurus-lockstep-3.10.2
Aug 5, 2026
Merged

fix(docs): align docusaurus packages to 3.10.2 to fix docs build#2079
leoniedickson merged 1 commit into
mainfrom
fix/docusaurus-lockstep-3.10.2

Conversation

@leoniedickson

Copy link
Copy Markdown
Collaborator

Problem

The docs deploy started failing after merging the @docusaurus/core and @docusaurus/tsconfig dependabot bumps to 3.10.2 (following the earlier webpack 5.98.0 → 5.109.0 bump, which itself broke the docs build against the old webpackbar@^6 bundled by @docusaurus/core@3.9.2).

@docusaurus/preset-classic, @docusaurus/plugin-content-docs, and @docusaurus/theme-live-codeblock were left on ^3.9.2, and @docusaurus/module-type-aliases on ^3.10.0, while core/tsconfig/types moved to 3.10.2. Docusaurus's @docusaurus/* packages share internal (non-public) APIs across each other and only work correctly when all on the same version. The split left preset-classic@3.9.2 pulling in the old @docusaurus/plugin-content-pages@3.9.2, which crashed against the new core@3.10.2's plugin-init context shape:

TypeError: Cannot read properties of undefined (reading 'mdxCrossCompilerCache')
    at createPagesMDXLoaderRule (.../plugin-content-pages/lib/index.js:31:78)

Change

Bump the remaining @docusaurus/* packages in documentation/package.json to ^3.10.2 so every Docusaurus package is on the same version:

  • @docusaurus/plugin-content-docs: ^3.9.2^3.10.2
  • @docusaurus/preset-classic: ^3.9.2^3.10.2
  • @docusaurus/theme-live-codeblock: ^3.9.2^3.10.2
  • @docusaurus/module-type-aliases: ^3.10.0^3.10.2

Root package-lock.json regenerated with npm install to match.

Verification

  • npm run build -w documentation: succeeds (only a pre-existing, unrelated broken-link warning on an API doc anchor, not introduced by this change)
  • npm run typecheck -w documentation (tsc): clean
  • [webpackbar] compiles both Client and Server successfully, confirming the newer webpackbar (pulled in transitively via the now-aligned 3.10.2 packages) also resolves the earlier webpack ProgressPlugin schema validation error from the webpack 5.109.0 bump.

@docusaurus/core was bumped to 3.10.2 while preset-classic,
plugin-content-docs, theme-live-codeblock and module-type-aliases
stayed on 3.9.x/3.10.0, breaking the docs build with "Cannot read
properties of undefined (reading 'mdxCrossCompilerCache')" since
Docusaurus's internal packages only work when all on the same version.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@leoniedickson
leoniedickson merged commit 9a25e18 into main Aug 5, 2026
11 checks passed
@leoniedickson
leoniedickson deleted the fix/docusaurus-lockstep-3.10.2 branch August 5, 2026 02:35
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.

1 participant