Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

editor.update(). #58

Open
MyHertOut opened this issue Jul 3, 2024 · 5 comments
Open

editor.update(). #58

MyHertOut opened this issue Jul 3, 2024 · 5 comments

Comments

@MyHertOut
Copy link

Error: Unable to find an active editor. This method can only be used synchronously during the callback of editor.update().

@CharlexChen
Copy link

occur same problem

@zswaff
Copy link
Contributor

zswaff commented Jul 16, 2024

This seems like a very import issue. @nevecex and I are seeing this at Dart too with the latest version of lexical-vue and lexical.

It seems like there may even be a problem with recursion because after a bunch of

Error: Unable to find an active editor state. State helpers or node methods can only be used synchronously during the callback of editor.update() or editorState.read().

We also see

RangeError: Maximum call stack size exceeded

It seems like this has something to do with lexical-vue 0.8.4 in concert with lexical 0.16.x--when we use lexical 0.15.0, for example, we don't have this issue.

That does mean that for the short term you all may be able to solve this the same way we are by using an older version of lexical (we do this by patching node_modules/lexical-vue/package.json with the patch-package tool).

In the longer term this seems like a serious problem so we should look into it!

@wobsoriano
Copy link
Owner

New version released and it's locked to 0.16.x. Let me know if the issue is fixed!

@nevecex
Copy link
Contributor

nevecex commented Jul 22, 2024

This has been fixed in the latest version, thank you!

@wobsoriano
Copy link
Owner

Thank you @nevecex for the update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants