Skip to content

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

Closed

Description

@hsingh-ds

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')".

Activity

  1. snork-alt commented on Nov 24, 2024

    @snork-alt

    same issue

  2. hienhaobn commented on Dec 11, 2024

    @hienhaobn

    same issue

  3. hienhaobn commented on Dec 19, 2024

    @hienhaobn

    +1

  4. iacopoinved commented on Jan 6, 2025

    @iacopoinved

    same here

  5. coxato commented on Jan 24, 2025

    @coxato

    same here

  6. Aichnerc commented on Jan 24, 2025

    @Aichnerc

    Same here

  7. enoliveira commented on Feb 28, 2025

    @enoliveira

    Same here. Any ETA on the resolution?

  8. YousefED commented on Mar 3, 2025

    @YousefED
    Collaborator

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

  9. coxato commented on Mar 3, 2025

    @coxato

    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')

  10. nperez0111 commented on Apr 11, 2025

    @nperez0111
    Contributor

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions