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

Property 'GitHub' does not exist on type 'typeof import("... #186

Open
davetapley opened this issue Apr 12, 2021 · 1 comment
Open

Property 'GitHub' does not exist on type 'typeof import("... #186

davetapley opened this issue Apr 12, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@davetapley
Copy link

I forked the repo to make a version for editing (https://github.com/JEFuller/action-edit-label), but when npm run build I get:

src/main.ts:22:31 - error TS2339: Property 'GitHub' does not exist on type 'typeof import("/home/dave/action-edit-label/node_modules/@actions/github/lib/github")'.

22     const client = new github.GitHub(githubToken);
                                 ~~~~~~

Any ideas?

@davetapley davetapley added the bug Something isn't working label Apr 12, 2021
@davetapley
Copy link
Author

davetapley commented Apr 12, 2021

Found root cause in actions/toolkit@4a89cf7

new github.GitHub(githubToken); is now github.getOctokit(githubToken);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant