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

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

Closed
1 task done
Stono opened this issue May 18, 2023 · 2 comments
Closed
1 task done
Labels
Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented

Comments

@Stono
Copy link

Stono commented May 18, 2023

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
@Stono Stono added Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented labels May 18, 2023
@Stono
Copy link
Author

Stono commented May 18, 2023

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

npm i --save @octokit/[email protected]

Feels a similar problem to: #115

@wolfy1339
Copy link
Member

wolfy1339 commented May 19, 2023

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

@github-project-automation github-project-automation bot moved this from 🆕 Triage to ✅ Done in 🧰 Octokit Active May 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented
Projects
Archived in project
Development

No branches or pull requests

2 participants