You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Custom block with nested editor is throwing error "TypeError: Cannot read properties of undefined (reading 'type')". #1267
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')".
Reacted by Christian Aichner, Drew Johnson, Eduardo Oliveira and Mikhail
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')
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
Activity
snork-alt commentedon Nov 24, 2024
same issue
hienhaobn commentedon Dec 11, 2024
same issue
hienhaobn commentedon Dec 19, 2024
+1
iacopoinved commentedon Jan 6, 2025
same here
coxato commentedon Jan 24, 2025
same here
Aichnerc commentedon Jan 24, 2025
Same here
enoliveira commentedon Feb 28, 2025
Same here. Any ETA on the resolution?
YousefED commentedon Mar 3, 2025
Could anyone share a reproducable stackblitz (e.g., start from this template) so we can look into this?
coxato commentedon Mar 3, 2025
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')
nperez0111 commentedon Apr 11, 2025
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