[Bug]: Editor constructor fails with this.members[i]
is undefined
when using CodeBlockLowlight
since v2.2.3
#5074
Labels
Category: Open Source
The issue or pull reuqest is related to the open source packages of Tiptap.
Type: Bug
The issue or pullrequest is related to a bug
Which packages did you experience the bug in?
extension-code-block-lowlight,core
What Tiptap version are you using?
3.1.0
What’s the bug you are facing?
When using tiptap
Editor
andCodeBlockLowlight
I am unable to render the editor as theinnerDeco
seems to have twomembers
which areundefined
. This causes theDecoraterGroup.locals
function to blow up as it callswhere
this.members[i]
is sometimes undefined.I have not found why this occurs at the moment, but some replicable code to produce the error is attached below.
Other replies to similar issues mentioned that this might be a prosemiror view version mismatch, but I cannot see this from the various extension package.jsons
What browser are you using?
Firefox
Code example
whereas if I pin the version to 2.2.3 the example is rendered correctly, e.g:
What did you expect to happen?
I expected the editor to be rendered.
Anything to add? (optional)
No response
Did you update your dependencies?
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: