Skip to content

typeof diff_match_patch issue #75

@sxt90128

Description

@sxt90128

I installed with npm i ngx-text-diff --legacy-peer-deps and "diff-match-patch": "^1.0.4", I got an error when app build as:

Error: node_modules/ngx-text-diff/lib/ngx-text-diff.service.d.ts:5:17 - error TS2749: 'diff_match_patch' refers to a value, but is being used as a type here. Did you mean 'typeof diff_match_patch'?
diffParser: diff_match_patch;

Is that a version issue, I used Angular13.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions