Skip to content

@codemirror/view is incompatible with TypeScript 4.8 #937

@sugar700

Description

@sugar700

Describe the issue

When running tsc with TypeScript 4.8 I get the following error:

node_modules/@codemirror/view/dist/index.d.ts:739:34 - error TS2344: Type 'T' does not satisfy the constraint 'PluginValue'.

739     plugin<T>(plugin: ViewPlugin<T>): T | null;
                                     ~

  node_modules/@codemirror/view/dist/index.d.ts:739:12
    739     plugin<T>(plugin: ViewPlugin<T>): T | null;
                   ~
    This type parameter might need an `extends PluginValue` constraint.


Found 1 error in node_modules/@codemirror/view/dist/index.d.ts:739

Browser and platform

No response

Reproduction link

No response

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