You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This problem is only related to users deploying this repo.
Develop problem
Using npm run build, you will have the following error.
[actions-netlify]$ npm run build
> [email protected] build /...
> tsc
node_modules/@actions/github/lib/github.d.ts:5:37 - error TS2507: Type 'typeof import("/.../node_modules/@octokit/rest/index")' is not a constructor function type.
5 export declare class GitHub extends Octokit {
~~~~~~~
node_modules/@actions/github/lib/github.d.ts:15:52 - error TS2694: Namespace '"/.../node_modules/@octokit/rest/index"' has no exported member 'Options'.
15 constructor(token: string, opts?: Omit<Octokit.Options, 'auth'>);
~~~~~~~
node_modules/@actions/github/lib/github.d.ts:16:31 - error TS2694: Namespace '"/.../node_modules/@octokit/rest/index"' has no exported member 'Options'.
16 constructor(opts: Octokit.Options);
~~~~~~~
src/main.ts:33:26 - error TS2339: Property 'issues' does not exist on type 'GitHub'.
33 await githubClient.issues.createComment({
~~~~~~
Found 4 errors.
Workaround
You can directly modify ./node_modules/@actions/github/lib/github.d.ts as follows.
- import Octokit from '@octokit/rest';+ import {Octokit} from '@octokit/rest';
The text was updated successfully, but these errors were encountered:
This problem is only related to users deploying this repo.
Develop problem
Using
npm run build
, you will have the following error.Workaround
You can directly modify
./node_modules/@actions/github/lib/github.d.ts
as follows.The text was updated successfully, but these errors were encountered: