dachev / node-cld

Language detection for Javascript (Node). Based on the CLD2 (Compact Language Detector) library from Google.
Apache License 2.0
316 stars 55 forks source link

tsc throws an error when CLD is included in the project #81

Open kibertoad opened 1 year ago

kibertoad commented 1 year ago

This happens with "skipLibCheck": false:

  > tsc --noEmit

  Error: ../../../node_modules/cld/index.d.ts(26,1): error TS2668: 'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible.
  Error: ../../../node_modules/cld/index.d.ts(31,3): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
  Error: ../../../node_modules/cld/index.d.ts(32,3): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
  Error: ../../../node_modules/cld/index.d.ts(33,3): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
  Error: ../../../node_modules/cld/index.d.ts(34,3): error TS1038: A 'declare' modifier cannot be used in an already ambient context.

TypeScript 5.2.2

See https://typescript.tv/errors/ -> TS2668