Skip to content

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

Description

@kibertoad

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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