@codemirror/view 6.36.6 is broken

I recently got updated to 6.36.6 from 6.36.5, and my basic setup + syntax highlighting was broken, it just became to what look liked a textbox. Downgrading it back worked so the issue must be on the new update.

Upgrading a package with yarn will often cause it to duplicate other packages – installing multiple versions. This is, I’d argue, broken behavior from yarn. CodeMirror assumes each of its packages to be loaded only once. You’ll have to clear your package lock to get it to properly deduplicate again. Or, what I recommend, is to switch to npm, which is just better maintained and more solid at this point.

1 Like

Thanks @marijn for the hint. I’ve added resolutions in my package.json and it looks like that resolved it.