Error Accessing nodeSize on Undefined in Cursor Collaboration Extension #5377
-
I'm encountering an error in my collaborative editing application using Tiptap with the Y.js real-time collaboration. The error message is TypeError: Cannot read properties of undefined (reading 'nodeSize'), and it occurs when I have around 5 active users and I focus the text area and refresh the page. After the refresh the text area breaks and I get this error |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 45 replies
-
Hm, so this is definitely coming from the collaboration cursor since it is talking about rendering decorations. It seems to me to be an issue with how the collaboration is initialized. Could you show some code on how you initialized the collaboration plugin, collaboration cursor and the collab provider? |
Beta Was this translation helpful? Give feedback.
I just made a new release https://github.com/ueberdosis/tiptap/releases/tag/v2.5.7
I updated the package.json in your example and it worked for me.
Sorry to send you down a bunch of rabbit holes. This was totally not obvious