Environment
Product Version | 4.5.0 |
Product | Progress® KendoReact |
Description
When I press Enter in the KendoReact Editor this errors occurs "RangeError: Can not convert <> to a Fragment (looks like multiple versions of prosemirror-model were loaded)".
Solution
Currently, it happens on the KendoReact website. If you open an example in StackBlitz, download it and run it locally, you will see that it works as expected. The error happens when different versions of ProseMirror packages are loaded.
To prevent this error in your app, use the ProseMirror packages from the @progress/kendo-editor-common
package and install the same version as it is pointed in the editor's package.json
file.
For example, for version 4.4.0., you should install version 1.1.5. of '@progress/kendo-editor-common'.
If you don't need to use the ProseMirror packages to customize or extend the editor's functionality, you will not get such an error.
If you use yarn, define all the ProseMirror packages versions in the resolutions section in package.json file.