Replies: 1 comment
-
|
I have identified the issue causing the errors when upgrading the Lexical rich editor from version 0.44.0 to 0.45.0. The solution is to ensure that all packages related to Lexical are updated to their latest versions. This step resolves the compatibility issues and allows for the expected functionality. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Current Version: 0.44.0
New Version: 0.45.0I have been working with the Lexical rich editor and successfully implemented the rich editor toolbar without any issues in version 0.44.0. Recently, I attempted to enhance the toolbar's functionality by integrating the @lexical/clipboard module to improve copy, cut, and paste operations.While using the function $generateJSONFromSelectedNodes(editor, selection), I encountered a type error indicating that the editor parameter was not compatible. The error message stated:
Argument of type 'import("~/project/node_modules/.pnpm/lexical@0.44.0/node_modules/lexical/LexicalEditor").LexicalEditor' is not assignable to parameter of type `'import("~/project/node_modules/.pnpm/lexical@0.45.0/node_modules/lexical/dist/LexicalEditor").LexicalEditor'.Property '_cascadeCount' is missing in type 'import("~/project/node_modules/.pnpm/lexical@0.44.0/node_modules/lexical/LexicalEditor").LexicalEditor' but required in type 'import("~/project/node_modules/.pnpm/lexical@0.45.0/node_modules/lexical/dist/LexicalEditor").LexicalEditor'As indicated, the function requires the newer version (0.45.0) to operate correctly. Upon updating to version 0.45.0, the initial error was resolved; however, I encountered several other errors in different areas of my code, likely due to changes in the new version.I would like to bring this issue to the attention of the development team, as it would be beneficial to address these compatibility concerns for users transitioning from version 0.44.0 to 0.45.0. Any guidance or updates regarding these changes would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions