-
Notifications
You must be signed in to change notification settings - Fork 248
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
Fixed error, cannot read properties of undefined reading .nodeType #175
base: master
Are you sure you want to change the base?
Conversation
The only way this seems to be possible is if |
Hi @marijnh :) Summary:We are encountering an error (below) when selecting table cells, particularly when the table contains empty rows. More details:Yes, you are correct about the case where Why is this the case? Empty rows without table cells:
Secondly, this happened after using another ProseMirror library: prosemirror-tables. |
The line already contains |
Yep, @marijnh, you are right, sorry for confusing 🙏 We catch error when |
What version of prosemirror-view are you using? In anything older than 1.31.0 there might be a situation where this happens, on Chrome when the document contains an |
we use "prosemirror-view": "1.33.5", |
In that case, I'd really want to see instructions on how to reproduce this error, so that I can figure out what the underlying issue is. |
What?
Get error:
TypeError: Cannot read properties of undefined (reading 'nodeType')
Why?
In some cases
node
does not have children and as a result we get propertynodeType
fromundefined
How?
Checked existing of
prev