Hello,
I’ve followed first “Bundle CodeMirror with Rollup”, where I had a simple editor with javascript language support, that was really great. But when troed the lang-example tutorial, my poor editor stopped working! This is the error I’m getting in my browser console:
editor.bundle.js:2019 Uncaught Error: Unrecognized extension value in extension set ([object Object]). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.
at inner (editor.bundle.js:2019:26)
at inner (editor.bundle.js:1994:20)
at inner (editor.bundle.js:2020:16)
at inner (editor.bundle.js:1994:20)
at inner (editor.bundle.js:2020:16)
at inner (editor.bundle.js:1994:20)
at flatten$1 (editor.bundle.js:2023:8)
at Configuration.resolve (editor.bundle.js:1931:28)
at EditorState.create (editor.bundle.js:2758:48)
at editor.bundle.js:39661:32
I’ve uploaded my project to this github repo.
I’ve followed too more posts in this forum, but none of them worked.