Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The CodeMirror example is broken because a new version of @codemirror/state was pushed that introduces a new dependency #96

Closed
jurjanpaul opened this issue Dec 10, 2024 · 2 comments

Comments

@jurjanpaul
Copy link
Contributor

https://babashka.org/scittle/codemirror.html does not work at the moment.

The following error is logged to console: Uncaught TypeError: Failed to resolve module specifier "@marijn/find-cluster-break". Relative references must start with either "/", "./", or "../".

It turns out that a new version of @codemirror/state was released 2024-12-09 that relies on this new dependency "@marijn/find-cluster-break" and since the example does not pin the codemirror modules to a specific version, the new version is loaded and does not find its dependency.

[Discovered this when wanting to continue with my own CodeMirror 6 Parinfer experiments.]

@jurjanpaul
Copy link
Contributor Author

jurjanpaul commented Dec 10, 2024

Here's my branch with 1 commit that fixes this (even though still not pinning the CodeMirror modules): main...jurjanpaul:scittle:codemirror-example-find-cluster-breaks-dependency

Obviously, I'm happy to turn this into a PR if that's considered helpful.

Alternatively, you're welcome to just paste it in yourself. :-)

(In my own experiment, which is based on your example, I just pinned all dependencies to prevent this kind of sudden breakage, but that has obvious drawbacks: https://github.com/jurjanpaul/codemirror6-parinfer/blob/main/index.html)

@borkdude
Copy link
Collaborator

borkdude commented Dec 10, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants