Skip to content

Error: could not find collab element node #1946

Closed as not planned
Closed as not planned
@francistogram

Description

@francistogram

Describe the bug
I'm using Lexical and trying to get inline comments working. It mostly works but having an issue with a feature we've had implemented

If you add 4 new lines it'll split the editor at that point and everything before stays in the existing editor and everything after moves to a new one

When that happens now I run into this error with attached Stacktrace

My suspicion is that it's because the CollabEditorNode is imported through some LiveBlocks way vs added to the nodes list in the config

image ![image](https://github.com/user-attachments/assets/f96311ed-29ac-496b-a987-b06a463e23a9)

To Reproduce
I setup a simple repo with repro steps for you to test on your own https://github.com/francistogram/liveblocks-bug

Illustrations
https://github.com/user-attachments/assets/f1ae0a6a-48f3-4ad0-9964-2fc59199d604

Environment (please complete the following information):

  • Liveblocks: 2.7.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage neededThe issue needs to be reviewed by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions