Skip to content

[Bug]: node_modules/@tiptap/core/dist/NodeView.d.ts:31:5 - error TS2416: Property 'ignoreMutation' in type 'NodeView<Component, NodeEditor, Options>'  #5867

@seybi79

Description

@seybi79

Affected Packages

tip tap core

Version(s)

2.10.2

Bug Description

When I build my application getting below error
node_modules/@tiptap/core/dist/NodeView.d.ts:31:5 - error TS2416: Property 'ignoreMutation' in type 'NodeView<Component, NodeEditor, Options>' is not assignable to the same property in base type 'NodeView'.
Type '(mutation: MutationRecord | { type: "selection"; target: Element; }) => boolean' is not assignable to type '(mutation: ViewMutationRecord) => boolean'.
Types of parameters 'mutation' and 'mutation' are incompatible.
Type 'ViewMutationRecord' is not assignable to type 'MutationRecord | { type: "selection"; target: Element; }'.
Type '{ type: "selection"; target: Node; }' is not assignable to type 'MutationRecord | { type: "selection"; target: Element; }'.
Type '{ type: "selection"; target: Node; }' is not assignable to type '{ type: "selection"; target: Element; }'.
Types of property 'target' are incompatible.
Type 'Node' is missing the following properties from type 'Element': attributes, classList, className, clientHeight, and 118 more.

31 ignoreMutation(mutation: MutationRecord | {
~~~~~~~~~~~~~~

Browser Used

Chrome

Code Example URL

No response

Expected Behavior

Build without fail..

Additional Context (Optional)

No response

Dependency Updates

  • Yes, I've updated all my dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Open SourceThe issue or pull reuqest is related to the open source packages of Tiptap.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions