ngx-text-diff icon indicating copy to clipboard operation
ngx-text-diff copied to clipboard

typeof diff_match_patch issue

Open sxt90128 opened this issue 1 year ago • 1 comments
trafficstars

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.

sxt90128 avatar Feb 02 '24 07:02 sxt90128

@sxt90128 , @ABenassi87 , @paustint .. Am facing the same issue with Angular v14. Can you share if you were able to find any fixes.

abinthaha avatar Apr 30 '24 15:04 abinthaha