Hey all, I wanted to share @marimo-team/codemirror-sql: a CodeMirror extension for SQL linting, hover, completions and many more features. This also contains additional dialect support for other databases like DuckDB and BigQuery.
@mscolnick I tried to use this package, and it is failing to compile. When I debugged, it is failing in instance of check for FacetProvider. Likely, mismatch in codemirror version.
I also checked the demo code, and it is using the source code directly. Not the built version.
Any suggestions would help. I use “codemirror” as dependency in package.json.
react-dom.development.js:22874 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 (index.cjs:1997:23)
at inner (index.cjs:1972:17)
at inner (index.cjs:1972:17)
at inner (index.cjs:1972:17)
at flatten (index.cjs:2001:5)
at Configuration.resolve (index.cjs:1909:25)
at EditorState.create (index.cjs:2741:43)