Skip to content

got 12.4.1 dependency cacheable-request does not transpile #2129

@AaronSterlingGENEICD

Description

@AaronSterlingGENEICD

Describe the bug

Running TypeScript 4.8.2:
Many errors generated on build of form
node_modules/@types/cacheable-request/index.d.ts:118:60 - error TS2709: Cannot use namespace 'ResponseLike' as a type.

npm explain latest-version
cacheable-request@7.0.2 dev
node_modules/cacheable-request
cacheable-request@"^7.0.2" from got@12.4.1
node_modules/got
got@"^12.1.0" from package-json@8.1.0
node_modules/package-json
package-json@"^8.1.0" from latest-version@7.0.0
node_modules/latest-version
dev latest-version@"^7.0.0" from the root project

Problem remediated with:

"overrides": {
    "latest-version": {
      "got": "12.3.1"
    }
  }

and installing with
npm ci
if installing with yarn, use --frozen-lockfile as noted by proton-ab below.

Checklist

  • I have read the documentation.
  • I have tried my code with the latest version of Node.js and Got.

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