Skip to content

Cannot read properties of undefined (reading 'renderToElement') #750

Closed

Description

@boyanhtrai

Describe the bug
Cannot read properties of undefined (reading 'renderToElement')

To Reproduce
I just test on example link on https: //www.blocknotejs.org/docs/custom-schemas/custom-inline-content
Link bug example: https://stackblitz.com/github/TypeCellOS/BlockNote/tree/main/examples/05-custom-schema/02-suggestion-menus-mentions?file=App.tsx

image

version: ^0.13.2
Misc

  • Node version: v20.11.0
  • Package manager:
  • Browser: chrome

Activity

  1. self-assigned this
    on May 28, 2024
  2. conr commented on May 30, 2024

    @conr
    Contributor

    I'm also running into this one after creating custom inline content

    image

  3. conr commented on May 30, 2024

    @conr
    Contributor

    Playing around with the example project I noticed the inline content example consistently crashes when switching between certain examples and not others (see clip below)

    Screen.Recording.2024-05-30.at.16.30.17.mov

    It seems contentComponent on _tiptapEditor is undefined in some cases.

    EDIT: Perhaps there's some race condition here. Sometimes the example with custom inline content renders and sometimes it crashes due to the error mentioned above.

  4. YousefED commented on Jun 11, 2024

    @YousefED
    Collaborator

    I'm keeping this open as #788 was a temp workaround that should not be necessary

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

Metadata

Metadata

Assignees

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