Hey Tom,
I see this has an error because of conflicting versions for `@codemirror/state` I ran into the same problem and managed to address it by using `jspm.dev` here https://observablehq.com/@jmatsushita/codemirror and loading modules pinned by version (jspm.dev uses some smarter semver pinning than the other cdn I've tried, which means transitively dependent modules get the correct latest version - instead of some pinned version at build time):
```
cmImports = loadCodeMirrorModules([
'view@6.22.2',
'state@6.3.3',
'language@6.9.3',
'commands@6.3.2'
])
```
I think I might have started to reinvent a wheel you've already worked on (making codemirror into an observable view). I did run into some weird problem with my implementation (listed in the TODO section of my notebook), so if you implement the jspm.dev imports I might switch to using yours (for https://observablehq.com/@jmatsushita/try-purescript for example).
Cheers!
Jun
yeah jspm.dev fixed it for me too, but something broke with this demo so I had to disable it. Looking at the proper codemirror view it seems to be working correctly though?
https://observablehq.com/@tomlarkworthy/codemirror-6#CodeMirror
I totally could not find my codemirror thing when looking for it, I had a feeling I had walked this path but could not remember it.