blockcn

Supported stack

The React, Next, Vite, React Router, Tiptap, and Node versions the registry install is run against.

shadcn add is run in CI on each of these. The editor is not published as an npm package, so "supported" means a fresh app created with the current shadcn CLI, plus the pins below.

StackWhat CI runsResult
Vite, React 19, radix-nova and base-novaThe default registry installMain chunk ~425 KB gzip (CI fails above 432). Renders in Chromium.
Vite, React 18.3.1BLOCKCN_INSTALL_STACK=react18Main chunk ~417 KB gzip. Renders in Chromium.
Next.js App Router, React 19The default registry installBuilds, prerenders /, renders in Chromium.
Next.js Pages RouterBLOCKCN_INSTALL_STACK=next-pagesBuilds and renders /. See the CSS note below.
React RouterBLOCKCN_INSTALL_STACK=react-routerTypechecks, builds, and renders. The CLI scaffolds 8.4, not 7.
TiptapPinned in every install3.29.0 for every @tiptap/* package. @tiptap/y-tiptap is 3.0.9.
NodeCI and the example server22.

React 18.3 and 19

Both typecheck, build, and render. The components do not call a React 19-only hook. radix-ui accepts React 18. The Vite template starts on React 19; the React 18 job sets react and react-dom to 18.3.1 and @types/react to 18.3.28 before the build.

Next.js

The App Router app loads the editor with next/dynamic and ssr: false.

The Pages Router allows a global stylesheet only from pages/_app. The editor imports editor.css, ai.css, collaboration.css, the Excalidraw stylesheet, and KaTeX's CSS from the module that needs them, which Vite and the App Router accept. The pages job moves those imports into pages/_app and leaves a Promise.resolve() where KaTeX's CSS was imported. Do the same in a pages app: import those stylesheets from _app, and do not import them again from a component.

React Router

shadcn init -t react-router currently scaffolds React Router 8 (react-router and @react-router/dev 8.4), not React Router 7. Remix's successor was 7; 8 is the template this CLI writes, and that is the version CI builds. The template aliases ~/* to app/*. shadcn add rewrites @/lib/utils to ~/lib/utils and places the editor at the project root (components/, editor-core/), not under src/.

The route loads the editor inside useEffect (import("../../components/block-editor")). A static import runs during the server render, and the editor expects a browser.

Tiptap

Newer 3.x releases are not supported just because they are 3.x. npm will float a caret to a build that does not match @tiptap/core@3.29.0 (3.32 imports getPreviousBlockSibling, which 3.29.0 does not export). Keep the exact versions from the registry item; npm update or a caret bump moves them.

Node

The example server and GitHub Actions use Node 22. The server is not installed through the registry.

On this page