Skip to content

Error: Cannot resolve a DOM node from Slate node #4534

@gbozzetti

Description

@gbozzetti

Description

Hello,

I followed all the steps in the guide to create a Basic Editor with Basic Marks, and everything works as expected.

The only issue is that every time I click on a button in the toolbar, I see an error message in the console (even though everything works):

Uncaught Error: Cannot resolve a DOM node from Slate node: {"children":[{"type":"p","children":[{"text":"Hello","bold":true},{"text":"! Try out the "},{"text":"bold","bold":true},{"text":", "},

Can you explain me what is going on here?

Thank you!

Reproduction URL

No response

Reproduction steps

1. Go to Plate guide
2. Follow all the steps to install Vite React + ts, shadcn/ui, Plate UI
3. Install the components as described in the guide
4. Copy/Paste the code from the guide related to Basic Mark example

Plate version

49.2.3

Slate React version

not using

Screenshots

Logs

Browsers

Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcore

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions