[FIX] multiple instances of @codemirror/state are loaded #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "patch-1"
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 couldn't load Codemirror 6 through skypack CDN. It's reported here.
When importing through jsDelivr CDN. it throws error
So I'm updating
@codemirror/stateversion.Note: Please enable Github dependabot alerts to avoid these errors in future.
"^0.19.0"is already compatible with"0.19.2". This is an issue in skypack, and I'm not going to keep all intra-package dependencies bumped to the latest patch version to accommodate that.This issue is not related to skypack. I had reported it to lezer-parser/javascript. See https://github.com/lezer-parser/javascript/issues/6#issuecomment-943228164
This issue is related to jsDelivr CDN.
Here you are using version 0.19.0, but used 0.19.2 in @codemirror/view.
Then jsDelivr ships both 0.19.0 and 0.19.2 and breaks
instanceofchecks.I haven't tested this on node js.
To fix this please upgrade this to 0.19.2 or downgrade state version of
@codemirror/viewto 0.19.2. As you saidThanks 👍
@marijnh ???
I'm not making this change, as I already indicated.
OK, @marijnh then can you downgrade the
@codemirror/stateversion in@codemirror/view.No, that would make no sense, and break things because @codemirror/view depends on features in @codemirror/state 0.19.2
Is now codemirror is working finely with bundlers. It's not working with CDNs.
Pull request closed