"cannot read properties of undefined" after upgrading @codemirror/autocomplete to 6.20.2 #1703
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm using codemirror 6.0.2 with the
@codemirror/lang-jinjaextension at 6.0.1. I've manually installed@codemirror/autocompleteas a dev dependency to access the typescript types to use in my application.Everything is working fine with
@codemirror/autocompleteat version 6.20.1, but as soon as I upgrade to 6.20.2 I start seeing the errorCannot read properties of undefined (reading 'length').Here's the stack trace:
I'm using the
jinjaextension withvariablesandpropertiesconfiguration set.If I remove the
jinjaextension from my editor then the error goes away. Just removing thevariablesorpropertiesfrom the extension initialiser does not prevent the error.If I downgrade
@codemirror/autocompleteto 6.20.1 then the error also goes away.Can you check (with
npm ls -a) whether any @codemirror or @lezer packages are installed multiple times in your tree after the upgrade? (Disregard the ones that day 'deduplicated'.)