Error when using RichTextField. #764
-
Hi, I always run into this error when using I know that it mostly occurs due to version mismatch on the Here are the two versions that I have used in 2 separate projects that run
and
"slate": "^0.103.0",
"slate-react": "^0.110.1",
or
"slate": "^0.103.0",
"slate-react": "^0.102.0", In these two projects where all the In my current project, I use ``"@contember/react-slate-editor": "2.0.0 I tried installing both the working version of Could you help me identify a valid solution to this problem? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi! Yes — this kind of error ( Even if your Step 1: Check what's actually installed
Look for:
Step 2: Force consistent versionsMake sure you have a single, compatible version — for example: "slate": "^0.103.0",
"slate-react": "^0.103.0" Then:
Step 3: Clean install
|
Beta Was this translation helpful? Give feedback.
Hi! Yes — this kind of error (
useSlateStatic must be used inside <Slate>
) almost always comes from a version mismatch betweenslate
,slate-react
, and@contember/react-slate-editor
.Even if your
package.json
lists compatible versions, it’s still possible that multiple versions ofslate
orslate-react
are installed due to transitive dependencies. That breaks the shared React context used by Slate.Step 1: Check what's actually installed
Yarn:
npm:
pnpm:
Look for:
Ste…