Repository navigation
Closed as not planned
Closed as not planned
Copy link
Description
Description
BlockNote editor (WYSIWYG mode) renders correctly but does not accept any user input — clicking, typing, or slash commands have no effect in production builds. No JavaScript errors appear in console. Markdown source mode (plain <textarea>) works perfectly. Everything works fine in dev mode.
To Reproduce
- Create a React + Vite + TypeScript app
- Install
@blocknote/react,@blocknote/mantine,@blocknote/corev0.52.1 - Set up the editor:
const editor = useCreateBlockNote({ schema }, [markdown])
return <BlockNoteView editor={editor} theme="dark" />- Run
vite buildto create production bundle - Serve the built files (e.g., via Tauri v2 or any static server)
- Click inside the editor — cursor does not appear
- Type — no text appears
- Press
/— slash menu does not appear - Switch to a plain
<textarea>mode — typing works perfectly
Expected Behavior
Editor should accept keyboard input and show the slash menu in production builds, identical to dev mode behavior.
Environment
| Package | Version |
|---|---|
| @blocknote/core | 0.52.1 |
| @blocknote/react | 0.52.1 |
| @blocknote/mantine | 0.52.1 |
| React | 19.2.8 |
| ReactDOM | 19.2.8 |
| Vite | 6.4.3 |
| Rollup | 4.62.3 |
| Node | 22.x |
| OS | macOS 12.7 (Monterey) |
| Bundler | Vite 6 + Rollup (also tested with Vite 8 + Rolldown 1.2.0 — same result) |
Additional Details
- No console errors: Tested with
window.addEventListener("error")andwindow.addEventListener("unhandledrejection")handlers — nothing captured - CSS is properly bundled: Built CSS contains 946
.bn-occurrences and 1795mantine-occurrences - Not a minification issue: Same result with
build.minify: falseandbuild.sourcemap: true - Not bundler-specific: Reproduced with both Rollup (Vite 6) and Rolldown (Vite 8)
- Not a CSS import issue: Tested with multiple CSS import strategies (direct imports, CSS @import, explicit paths)
- Dev mode works perfectly: Including with
React.StrictModedouble-rendering - Plain textarea works: Markdown source mode (switching to
<textarea>) allows typing normally - Tauri v2 WKWebView: Tested in Tauri v2 production binary (macOS Monterey Safari/WebKit 15.x) — same issue when opening
dist/index.htmldirectly in any browser
Suspected Cause
The editors contenteditable element renders in the DOM but seems disconnected from the ProseMirror/TipTap engine. Since:
- Dev mode (React strict double-mount) works
- Production mode (single mount) fails
- No errors surface
This suggests a timing or interop issue between ProseMirror initialization and the React production build bundling.
Related Issues
- Editor does not load in Next.js minified production build #292 — similar Next.js production build issue (but had a JS error)
- When I try show slash menu on production, always shows e.fn is not a function error #276 — similar slash menu production issue (but had a JS error)
Reacted by Wildan Nursahidan
Metadata
Metadata
Assignees
Labels
No labels
Activity
matthewlipski commentedon Jul 27, 2026
Hi, I could not replicate this issue in a sandbox with the exact dependencies you've provided.
npm run build && npm run previewcreates and serves a production build with BlockNote without any problems. If you can replicate your issues in a sandbox I can take another look.gitfromwildan commentedon Jul 27, 2026
@matthewlipski
This is my project to replicate and test with sandbox
https://github.com/DocuBook/editor
YousefED commentedon Jul 28, 2026
Please provide an isolated example that reproduces the issue, we cannot debug your full application