Skip to content

Fix react-dom/server RSC error in Conversation component#58

Draft
Copilot wants to merge 3 commits into
mainfrom
copilot/setup-vinext-for-cloudflare
Draft

Fix react-dom/server RSC error in Conversation component#58
Copilot wants to merge 3 commits into
mainfrom
copilot/setup-vinext-for-cloudflare

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 18, 2026

Conversation.tsx lacked 'use client', causing isomorphic-dompurify to be evaluated in the React Server Components context where react-dom/server is replaced by a shim that throws immediately.

Changes

  • Conversation.tsx — Added 'use client'. The component is purely presentational (uses dangerouslySetInnerHTML, no server data fetching) and is only ever rendered inside the already-client-boundary Conversations.tsx. This moves isomorphic-dompurify and its jsdom dependency out of the RSC module graph.

  • package.json — Bumped isomorphic-dompurify from pinned RC 3.0.0-rc.2^3.5.1 (latest stable); pnpm-lock.yaml updated accordingly.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
answerify Error Error Mar 18, 2026 4:40pm

Co-authored-by: harshithpabbati <43822585+harshithpabbati@users.noreply.github.com>
Copilot AI changed the title [WIP] Add setup for Vinext deployment on Cloudflare Add @opennextjs/cloudflare support for Cloudflare Workers deployment Mar 18, 2026
Copilot AI requested a review from harshithpabbati March 18, 2026 16:25
…rify to stable

Co-authored-by: harshithpabbati <43822585+harshithpabbati@users.noreply.github.com>
Copilot AI changed the title Add @opennextjs/cloudflare support for Cloudflare Workers deployment Fix react-dom/server RSC error in Conversation component Mar 18, 2026
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.

2 participants