Parser/runtime version mismatch #11
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 getting the following error when I try to run the output of this template as a play language using the latest CodeMirror:
I've tried it with the latest version of codemirror 6's individual packages:
and with just
codemirror@6.0.1.Looks like some dependency in CodeMirror wasn't updated when this commit dropped but I didn't look into it enough to figure out exactly what needed to be updated.
Did you try removing your package lock and reinstalling from scratch? Are you referencing any
@lezerpackages in your dependencies? If so, make sure those reference 1.x versions.Ah, I see what's happening. Parcel has a sub-dependency on an older version of
@lezer/lrand npm put that at the top level of my node_modules, so when I copied the built files to my project the imports were pulling in Parcel's version.By adding the explicit dependency to
@lzer/lrand@lzer/highlightto my project's package.json the import resolved correctly. This issue became rather obvious when I removed parcel and tried to build with rollup instead. I should have just read the built source file, that would have also probably made it obvious.