Skip to content

Conversation

@punkbit
Copy link
Collaborator

@punkbit punkbit commented Jan 20, 2026

Why?

TLDR; Click-UI fails to install, run or build on major React-like libraries, e.g. HyperDX, Nextjs, Vitejs latest. The PR provides a minimal set of changes to unblock the team.

The current/latest versions of click-ui, such as https://www.npmjs.com/package/@clickhouse/click-ui/v/0.0.250, break on the latest of Nextjs, Vitejs, any React >= 19 or RSC enabled builds. To mitigate it, this initial PR provides the minimal setup required for it to work in such environments, e.g. when installing the package, it should run in dev and build processes. It does NOT try to modify, replace, introduce or change breaking changes. At the time of writing, the library requires a browser runtime, being client-only. Separately, there'll be other PR to address other related concerns and expand on this initial PR, e.g. none interactive components shall render server-side.

How?

  • Make styled-components, as an external dependency
  • Opens brief support for hosting on React v19 projects retroactively
  • Declares as client library at entry point, preventing nested/subtree-related issues
  • Resolve some type issues

Demo?

Nextjs latest (v16), build/prod distribution output serving click-ui

demo-cui-nextjs-latest-build-output.mp4

HyperDX on dev, serving click-ui

demo-cui-nextjs-v16-latest.mp4

Vite latest, serving click-ui

demo-cui-vite-latest.mp4

Nextjs latest on dev

demo-cui-nextjs-v16-latest.mp4

@vercel
Copy link

vercel bot commented Jan 20, 2026

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

Project Deployment Review Updated (UTC)
click-ui Ready Ready Preview, Comment Jan 22, 2026 5:12pm

Request Review

@punkbit punkbit force-pushed the fix/minimal-react-19-rsc-support branch from af90b2a to 8dea336 Compare January 21, 2026 16:33
@changeset-bot
Copy link

changeset-bot bot commented Jan 21, 2026

🦋 Changeset detected

Latest commit: b23c72f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@clickhouse/click-ui Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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