[L6] @types/react pinned to v18 while peerDeps allow v19 #32

Closed
opened 2026-06-27 03:54:48 +00:00 by sessamekesh · 0 comments
Owner

File: packages/viewer-react/package.json

peerDependencies allow react/react-dom ^18.2.0 || ^19.0.0, but the dev @types/react / @types/react-dom are pinned to ^18.2.0. Type-checking therefore validates against v18 types only, so v19-only type changes wouldn't be caught.

Fix: widen the dev types or add a v19 type-check matrix entry. Minor.


Filed by an automated AI code review (manual proof-of-concept run). Code locations reference the various-cleanup branch.

**File:** `packages/viewer-react/package.json` `peerDependencies` allow `react`/`react-dom` `^18.2.0 || ^19.0.0`, but the dev `@types/react` / `@types/react-dom` are pinned to `^18.2.0`. Type-checking therefore validates against v18 types only, so v19-only type changes wouldn't be caught. **Fix:** widen the dev types or add a v19 type-check matrix entry. Minor. --- _Filed by an automated AI code review (manual proof-of-concept run). Code locations reference the `various-cleanup` branch._
Sign in to join this conversation.
No description provided.