TypeCellOS / BlockNote

A React Rich Text Editor that's block-based (Notion style) and extensible. Built on top of Prosemirror and Tiptap.
https://www.blocknotejs.org/
Mozilla Public License 2.0
6.64k stars 457 forks source link

Use with React 19 fails with error "Cannot read properties of undefined (reading 'ReactCurrentOwner')" #1187

Closed ryleyrandall22 closed 1 week ago

ryleyrandall22 commented 1 week ago

Describe the bug When using the library with a default config, the following error is thrown "Cannot read properties of undefined (reading 'ReactCurrentOwner')". This looks like a piece from React internals that was removed in react 19. This appears to be a common issue with apps in React 19. Interestingly, NextJS uses this as well so the must patch the change.

To Reproduce https://stackblitz.com/edit/github-2amsyj?file=package.json

Misc

irakli2206 commented 1 week ago

Really hope this issue gets addressed soon. This looks like the best block-based rich text library out there.

YousefED commented 1 week ago

duplicate and fix wip https://github.com/TypeCellOS/BlockNote/pull/1173