octokit / rest.js

GitHub REST API client for JavaScript

Home Page:https://octokit.github.io/rest.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG]: Could not find a declaration file for module '@octokit/request'

Stono opened this issue · comments

What happened?

Using the latest version of @octokit/rest (19.0.8), I get:

node_modules/@octokit/core/dist-types/index.d.ts(2,25): error TS7016: Could not find a declaration file for module '@octokit/request'. '/Users/Karl.Stoney/git/autotrader/node-at-github/node_modules/@octokit/request/dist-node/index.js' implicitly has an 'any' type.

During the build.

I was on 19.0.7 and got the same thing, which built previously fine. Therefore this feels like a transitive dependency issue?

Versions

19.0.8

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

This is "Fixed" by explicitly installing an older version of @octokit/request;

npm i --save @octokit/request@6.2.3

Feels a similar problem to: #115

This should be fixed now. Can you try updating your lockfiles, or reinstalling the package?

If that doesn't work, I can push an update that bumps the dependencies so you get a fixed version