Skip to content

fix(example): pin @types/react to one version so typecheck passes - #86

Open
vonovak wants to merge 1 commit into
mainfrom
@vonovak/fix-example-typecheck
Open

vonovak wants to merge 1 commit into
mainfrom
@vonovak/fix-example-typecheck

Conversation

@vonovak

@vonovak vonovak commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The Checks workflow fails on main and on every open PR at bun run typecheck:apps:

src/app/react-query-time/index.tsx(37,9): error TS2322: Type 'React.ReactNode' is not assignable to type 'import(".../node_modules/@types/react/index").ReactNode'.

The example app depends on @types/react ~19.1.10 while every package depends on ~19.0.10. Bun installs two copies, 19.0.14 at the root and 19.1.17 under apps/example, and a ReactNode from one copy is not assignable to the other. The lockfile only listed 19.0.14, so this surfaced once CI moved to a newer Bun (bun-version: latest, 1.4.2 in the failing run).

This pins @types/react to ~19.1.10 through the root resolutions, next to the existing react and react-dom pins, and refreshes the lockfile.

Seen in #85 CI, but unrelated to that PR.

Test plan

  • bun install --frozen-lockfile succeeds
  • bun run lint:apps passes
  • bun run typecheck:apps passes (fails on main before this change)
  • packages/apollo-client: tsc --noEmit and lint pass (jest has no tests on main)
  • No tracked build/ output changed after reinstall

🤖 Generated with Claude Code

The example app asked for @types/react ~19.1.10 while every package asked
for ~19.0.10. Bun installed two copies and the example typecheck failed
with "Type 'React.ReactNode' is not assignable to type ReactNode".

Pin @types/react through the root resolutions, next to the existing
react and react-dom pins, and refresh the lockfile.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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