Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
raksooo opened this issue Oct 24, 2022 · 1 comment

Comments

@raksooo
Copy link

raksooo commented Oct 24, 2022

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]
@erickzhao
Copy link
Member

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"
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants