Skip to content

npm package fails to run #72

@adityatoshniwal

Description

@adityatoshniwal

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.

I also suggest to use codermirror as dependency instead of individual @codemirror packages.

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions