Skip to content

Bug: 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(). #5934

@muhammadmudasir1

Description

@muhammadmudasir1

i create reactjs app which works fine but after i use react.lazy at multiple location not in editor and create a build it give the 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().
at getActiveEditorState (http://localhost:3000/static/js/bundle.js:755073:13)
at $getRoot (http://localhost:3000/static/js/bundle.js:748462:26)
at $rootTextContent (http://localhost:3000/static/js/bundle.js:747214:65)
at $isRootTextContentEmpty (http://localhost:3000/static/js/bundle.js:747236:14)
at $canShowPlaceholder (http://localhost:3000/static/js/bundle.js:747268:8)
at http://localhost:3000/static/js/bundle.js:747308:16
at readEditorState (http://localhost:3000/static/js/bundle.js:740294:12)
at EditorState.read (http://localhost:3000/static/js/bundle.js:741394:12)
at canShowPlaceholderFromCurrentEditorState (http://localhost:3000/static/js/bundle.js:723705:61)
at http://localhost:3000/static/js/bundle.js:723709:109

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions