rebuild icon indicating copy to clipboard operation
rebuild copied to clipboard

Unavailable transitive dependencies (@types/keyv) due to dependency on old version of got

Open raksooo opened this issue 3 years ago • 1 comments

It looks like @types/keyv and @types/cacheable-request were deprecated and had an update which is just an empty package. @types/cacheable-request has specified the @types/keyv version to * which leads npm to use the latest version, which is empty.

@types/cacheable-request is a dependency of got@11 and could be resolved by upgrading to got@12.

Here's the dependency tree from electron-rebuild to @types/keyv:

    └─┬ [email protected]
      └─┬ [email protected]
        └─┬ @types/[email protected]
          └── @types/[email protected]

raksooo avatar Oct 24 '22 14:10 raksooo

Definitely seems like something we should fix.

A temporary fix could be to use a resolution in your package.json to pin that version to the last @types/keyv version that wasn't stubbed out.

{
  "resolutions": {
    "@types/keyv": "3.1.4"
  }
}

erickzhao avatar Sep 09 '23 16:09 erickzhao