-
Notifications
You must be signed in to change notification settings - Fork 150
Closed
Description
With current commit, when make docker-run it shows an error as below:
% make docker-run
docker run node-gitlab-2-github:latest
> gitlab-2-github@0.1.5 start
> node node_modules/ts-node/dist/bin.js ./src/index.ts
/app/node_modules/ts-node/src/index.ts:750
return new TSError(diagnosticText, diagnosticCodes);
^
TSError: ⨯ Unable to compile TypeScript:
src/index.ts(55,36): error TS2345: Argument of type 'typeof throttling' is not assignable to parameter of type 'OctokitPlugin'.
Types of parameters 'octokit' and 'octokit' are incompatible.
Type 'import("/app/node_modules/@octokit/rest/node_modules/@octokit/core/dist-types/index").Octokit' is not assignable to type 'import("/app/node_modules/@octokit/core/dist-types/index").Octokit'.
The types of 'request.defaults(...).defaults(...).defaults(...).endpoint.DEFAULTS' are incompatible between these types.
Type 'object & O & O & O & import("/app/node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/RequestParameters").RequestParameters & { baseUrl: string; method: import("/app/node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/RequestMethod").RequestMethod; url?: string; headers: import("/app/node...' is not assignable to type 'object & O & O & O & import("/app/node_modules/@octokit/types/dist-types/RequestParameters").RequestParameters & { baseUrl: string; method: import("/app/node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/RequestMethod").RequestMethod; url?: string; headers: import("/app/node_modules/@octokit/types/dis...'.
Type 'object & O & O & O & RequestParameters & { baseUrl: string; method: RequestMethod; url?: string; headers: RequestHeaders & { ...; }; mediaType: { ...; }; }' is not assignable to type '{ baseUrl: string; method: RequestMethod; url?: string; headers: RequestHeaders & { accept: string; "user-agent": string; }; mediaType: { format: string; previews: string[]; }; }'.
Types of property 'mediaType' are incompatible.
Type '{ format?: string; previews?: string[]; } & { format?: string; previews?: string[]; } & { format: string; previews?: string[]; }' is not assignable to type '{ format: string; previews: string[]; }'.
Property 'previews' is optional in type '{ format?: string; previews?: string[]; } & { format?: string; previews?: string[]; } & { format: string; previews?: string[]; }' but required in type '{ format: string; previews: string[]; }'.
at createTSError (/app/node_modules/ts-node/src/index.ts:750:12)
at reportTSError (/app/node_modules/ts-node/src/index.ts:754:19)
at getOutput (/app/node_modules/ts-node/src/index.ts:941:36)
at Object.compile (/app/node_modules/ts-node/src/index.ts:1243:30)
at Module.m._compile (/app/node_modules/ts-node/src/index.ts:1370:30)
at Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
at Object.require.extensions.<computed> [as .ts] (/app/node_modules/ts-node/src/index.ts:1374:12)
at Module.load (node:internal/modules/cjs/loader:1076:32)
at Function.Module._load (node:internal/modules/cjs/loader:911:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
diagnosticText: "src/index.ts(55,36): error TS2345: Argument of type 'typeof throttling' is not assignable to parameter of type 'OctokitPlugin'.\n" +
" Types of parameters 'octokit' and 'octokit' are incompatible.\n" +
` Type 'import("/app/node_modules/@octokit/rest/node_modules/@octokit/core/dist-types/index").Octokit' is not assignable to type 'import("/app/node_modules/@octokit/core/dist-types/index").Octokit'.\n` +
" The types of 'request.defaults(...).defaults(...).defaults(...).endpoint.DEFAULTS' are incompatible between these types.\n" +
` Type 'object & O & O & O & import("/app/node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/RequestParameters").RequestParameters & { baseUrl: string; method: import("/app/node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/RequestMethod").RequestMethod; url?: string; headers: import("/app/node...' is not assignable to type 'object & O & O & O & import("/app/node_modules/@octokit/types/dist-types/RequestParameters").RequestParameters & { baseUrl: string; method: import("/app/node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/RequestMethod").RequestMethod; url?: string; headers: import("/app/node_modules/@octokit/types/dis...'.\n` +
` Type 'object & O & O & O & RequestParameters & { baseUrl: string; method: RequestMethod; url?: string; headers: RequestHeaders & { ...; }; mediaType: { ...; }; }' is not assignable to type '{ baseUrl: string; method: RequestMethod; url?: string; headers: RequestHeaders & { accept: string; "user-agent": string; }; mediaType: { format: string; previews: string[]; }; }'.\n` +
" Types of property 'mediaType' are incompatible.\n" +
" Type '{ format?: string; previews?: string[]; } & { format?: string; previews?: string[]; } & { format: string; previews?: string[]; }' is not assignable to type '{ format: string; previews: string[]; }'.\n" +
" Property 'previews' is optional in type '{ format?: string; previews?: string[]; } & { format?: string; previews?: string[]; } & { format: string; previews?: string[]; }' but required in type '{ format: string; previews: string[]; }'.\n",
diagnosticCodes: [ 2345 ]
}
make: *** [docker-run] Error 1
I think it has something with this commit.
126dd9f
When I tried to revert to below, it ran successfully.
84a62db
% git reset --hard 84a62dbcb9cc00e300dccab5dd87c1ad5a492f1d
HEAD is now at 84a62db Merge pull request #219 from mschoettle/add-weburl
% make build-image
% make docker-run
Environment:
macOS 15.3.1
Docker version 24.0.2, build cb74dfc
Please check it:)
Willem3141, GL-SanderV and NetSysFire
Metadata
Metadata
Assignees
Labels
No labels