BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

Custom block with nested editor is throwing error "TypeError: Cannot read properties of undefined (reading 'type')".

Open hsingh-ds opened this issue 1 year ago • 9 comments

Describe the bug I have a main blocknote editor instance and i have a custom block which renders one more blocknote editor inside the main editor. It renders properly but when I move cursor over it, it throws error "TypeError: Cannot read properties of undefined (reading 'type')".

hsingh-ds avatar Nov 22 '24 02:11 hsingh-ds

same issue

snork-alt avatar Nov 24 '24 05:11 snork-alt

same issue

hienhaobn avatar Dec 11 '24 06:12 hienhaobn

+1

hienhaobn avatar Dec 19 '24 02:12 hienhaobn

same here

iacopoinved avatar Jan 06 '25 13:01 iacopoinved

same here

coxato avatar Jan 24 '25 05:01 coxato

Same here

Aichnerc avatar Jan 24 '25 08:01 Aichnerc

Same here. Any ETA on the resolution?

enoliveira avatar Feb 28 '25 01:02 enoliveira

Could anyone share a reproducable stackblitz (e.g., start from this template) so we can look into this?

YousefED avatar Mar 03 '25 11:03 YousefED

Could anyone share a reproducable stackblitz (e.g., start from this template) so we can look into this?

Hi Yousef, I did an example here https://stackblitz.com/edit/github-gmjxd36s?file=App.tsx

Actually it looks like is working but as soon as you move the mouse cursor to the nested editor, it throws an error.
and the error is the same as the title of this issue.

Uncaught TypeError: Cannot read properties of undefined (reading 'type')

coxato avatar Mar 03 '25 16:03 coxato

There will be a lot more complexity around nested editors. It will be more than just fixing this error. I don't think this is something which we would want to support right now. So, I will mark this as a wont fix for now

nperez0111 avatar Apr 11 '25 11:04 nperez0111