error importing lang-javascript #29
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?
Hi,
I have a strange error since v1.4.12: just importing lang-javascript fails with this:
Reverting the @lezer/javascript to v1.4.11 works with no error, that's why I guess is related to the lezer. I also have no problems with other languages (html, sass)
I put a minimal test here
if you comment the
import { javascript } from "@codemirror/lang-javascript";line, there is no errorHere is a screenshot since codesandbox sometimes doesn't display the error, it just fails silently

Can you confirm that @lezer/common is deduplicated (only occurs once in
npm ls -a) and is on version 1.2.0 or higher?It seems I forgot to add the dependency on @lezer/common 1.2.0 when I updated this package. Version 1.4.13 should fix that.
Whoa, that was fast.
Works great, thanks a lot