ckeditor5-react icon indicating copy to clipboard operation
ckeditor5-react copied to clipboard

Uncaught Error: Item with the given id was not registered

Open tsechingho opened this issue 4 years ago • 5 comments

Scenario

When I update the @ckeditor/ckeditor5-react from 3.0.2 to 3.0.3, I got the error like Uploading ckeditor5-react_3.0.3_bug.png…

It occurs with every version of ckeditor5 from 25.0.0 to 31.0.0. No custom plugins involved.

I can not tell which changes make this error. https://github.com/ckeditor/ckeditor5-react/compare/v3.0.2...v3.0.3

Follow the error stack, it looks like this line trigger the error.

tsechingho avatar Nov 23 '21 06:11 tsechingho

Hi, thanks for the report. Could you share some more details and steps to reproduce this issue? Does this happen also if you install a fresh app with version 3.0.3? Does this happen with some particular plugins set, during editing, when loading some content or just during empty editor initialisation? We need more information to look into this.

FilipTokarski avatar Nov 23 '21 08:11 FilipTokarski

I find a scenario today. I have a page having react-select and ckeditor5-react fields together. I have an old version of react-select, I update it by yarn upgrade react-select@^5.2.1.

-    "react-select": "^3.1.1",
+    "react-select": "^5.2.1",

and I update ckeditor5-react by yarn upgrade @ckeditor/ckeditor5-react@^3.0.3

-    "@ckeditor/ckeditor5-react": "3.0.2",
+    "@ckeditor/ckeditor5-react": "^3.0.3",

then the error Item with the given id was not registered is gone.

If I only update to react-select@^4.3.1, and the error will still happen.

The error is saying that this.props.editor is not registered in this change of [email protected]. I think it is about update issue of react component (ref1, ref2).

Two major changes of react-select@^5.0.0 is the usage of forwardRef and removal of react-input-autosize.

It is sure that ckeditor5-react@^3.0.3 is only compatible with react-select@^5.0.0.

tsechingho avatar Nov 26 '21 04:11 tsechingho

hey, any updates on this?

sandeepDevJs avatar Jan 26 '22 17:01 sandeepDevJs

have the same problem

amitShimon1983 avatar Oct 19 '22 16:10 amitShimon1983

I'm getting this same error when upgrading from "3.0.2" to "3.0.3". I realized I had react-select installed but wasn't using it. I removed it from my package.json but the error is still occurring.

kauffmanes avatar Jan 23 '24 16:01 kauffmanes