if you meet ERROR:Cannot resolve a Slate node from DOM node,just check if you have used PlateEditorPlugin with SlateElement
#5057
ZZZWG1019
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
This ERROR occurred because I didn`t realize how platejs assemble AIkit and YjsPlugin.
I manually copy yjs demo code and install aikit with shadcn@latest,but it's NOT important.
when I copy yjs demo code,
I didn't add editor-kit because I found that "BaseEditorKit } from '@/@components/editor/editor-base-kit';" also works.
and I run pnpm dev and see
Cannot resolve a Slate node from DOM nodemany times.even ask AI and it will tell you that problem might be with other plugins such as BlockSelectionKit or Suggestion.
Why didn`t i just install EditorKit from beginning?
Because I think EditorKit has too many plugins, I would like fewer plugins,
base-editor-kit has far fewer plugins than Editor kit.
I forgot the entire install base-editor-kit process,but i still install and base-editor-kit not EditorKit that demo dependent.
so, if you meet
Cannot resolve a Slate node from DOM nodein Browser devtools,check whethe your plugins use static components like hr-node-static, if you are,switch it to hr-node.
like this in various plugins files:
All reactions