Skip to content

fix(interact): allow React 19 in peerDependencies#194

Open
tombigel wants to merge 3 commits intomasterfrom
tombigel/react-19-peer-dep
Open

fix(interact): allow React 19 in peerDependencies#194
tombigel wants to merge 3 commits intomasterfrom
tombigel/react-19-peer-dep

Conversation

@tombigel
Copy link
Copy Markdown
Contributor

Summary

  • Widen @wix/interact peer range from ^18.3.1 to ^18.3.1 || ^19.0.0 for react and react-dom.
  • Unblocks installs in React 19 projects (npm/yarn/pnpm were rejecting the peer).

The React integration code already branches on version semantics — Interaction.tsx returns a cleanup from the ref callback (React 19+) and interactRef.ts has explicit "React 18 and below" / "React 19+" handling. No removed React 19 APIs are used.

Dev deps stay on React 18 in this PR; a CI matrix for both versions will be tracked in a follow-up issue.

Closes #174

Test plan

  • yarn install still resolves cleanly in this repo
  • yarn workspace @wix/interact test passes against the pinned React 18 dev deps
  • Verify install succeeds in a React 19 project (e.g. the repro at https://github.com/tombigel/interact-react19) once a prerelease of this fix is published

🤖 Generated with Claude Code

Closes #174

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@tombigel tombigel requested a review from ydaniv April 21, 2026 10:28
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.

[BUG] Vite fails on bundling Interact in a React 19 environment

2 participants