Slate: Unable to find the path for Slate node:

Created on 21 Mar 2020  Â·  1Comment  Â·  Source: ianstormtaylor/slate

Hey Guys?

I'm trying to serialize this HTML as defined here in the docs but I keep getting this error

This error occurs when I have this component defined

             <Editable
                    renderElement={renderElement}
                    renderLeaf={renderLeaf}
                    placeholder="Enter some rich text…"
                    spellCheck
                    autoFocus
                    onKeyDown={event => {
                        for (const hotkey in HOTKEYS) {
                            if (isHotkey(hotkey, event)) {
                                event.preventDefault()
                                const mark = HOTKEYS[hotkey]
                                toggleMark(editor, mark)
                            }
                        }
                    }}
                />

Uncaught Error: Unable to find the path for Slate node: {"children":{"children":[{"type":"paragraph","children":[{"text":"This is editable "},{"text":"rich","bold":true},{"text":" text, "},{"text":"much","italic":true},{"text":" better than a "},{"text":"