@docusaurus/types, @docusaurus/theme-common and @docusaurus/module-type-aliases
pinned @types/react to exactly 19.3.0. Since @types/react 19.3.1 was released,
new TypeScript sites install a second copy, and tsc fails on the SVG imports of
the classic-typescript template: two copies of @types/react are never
compatible (unique symbol declarations).
Use the catalog range (^19.3.0) so that package managers dedupe it with the
site's @types/react, and remove the Syncpack exception for the exact version.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Motivation
The "E2E Tests" workflow fails on
mainsince @types/react 19.3.1 was released (2026-11-24), in every package manager, on the "TypeCheck website" step:@docusaurus/types,@docusaurus/theme-commonand@docusaurus/module-type-aliasespin@types/reactto exactly19.3.0, while the site template uses^19.3.0. New sites now get@types/react@19.3.3at the root plus a nested19.3.0copy under each of these packages. Two copies of@types/reactare never compatible (it declaresunique symbols), so any user TypeScript site breaks as soon as a new@types/reactpatch is released.This PR uses the catalog range (
^19.3.0) so that package managers dedupe it with the site's@types/react, and removes the Syncpack exception that allowed the exact version. The exact pin came from #11975 (it was*before).Test Plan
Reproduced locally with a TypeScript site generated from the
classictemplate, installed with npm againstpnpm packtarballs of the local packages, and a newer@types/reactat the site root:@types/react@19.3.0copies,tscfails with the CI error above.@types/reactcopy,tscpasses.The E2E workflow of this PR should be green again.
Test links
Deploy preview: https://deploy-preview-13119--docusaurus-2.netlify.app/
Related issues/PRs
Found while working on #13116, whose E2E checks fail for this reason.
🤖 Generated with Claude Code
Summary by CodeRabbit