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

Error: Cannot read properties of null (reading 'updateOuterDeco') #532

Open
thales-fukuda opened this issue Nov 20, 2023 · 0 comments
Open

Comments

@thales-fukuda
Copy link

thales-fukuda commented Nov 20, 2023

Bug description

While running the example presented on the README for this project in dev mode, the code threw the error below.

I tried to use the use-editor hook provided by Tiptap instead of the custom one for this project and the code ran well. I think the problem may be related to the fact that while hot-reloading, Tiptap tries to access a destroyed editor.

The use-editor hook was written more than a year ago, and since then Tiptap had multiple updates. Specifically, ueberdosis/tiptap#4000 might be related to it.

Error:

Cannot read properties of null (reading 'updateOuterDeco')
TypeError: Cannot read properties of null (reading 'updateOuterDeco')
    at EditorView.updateStateInner (http://localhost:3000/static/js/bundle.js:99248:24)
    at EditorView.update (http://localhost:3000/static/js/bundle.js:99181:10)
    at EditorView.setProps (http://localhost:3000/static/js/bundle.js:99193:10)
    at Editor.createNodeViews (http://localhost:3000/static/js/bundle.js:57999:15)
    at PureEditorContent.init (http://localhost:3000/static/js/bundle.js:62223:14)
    at PureEditorContent.componentDidMount (http://localhost:3000/static/js/bundle.js:62204:10)
    at invokeLayoutEffectMountInDEV (http://localhost:3000/static/js/bundle.js:36371:26)
    at invokeEffectsInDev (http://localhost:3000/static/js/bundle.js:38289:15)
    at commitDoubleInvokeEffectsInDEV (http://localhost:3000/static/js/bundle.js:38270:9)
    at flushPassiveEffectsImpl (http://localhost:3000/static/js/bundle.js:38045:9)

Version information:

Package version: 2.1.3
React: 18.2.0

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

1 participant