Evobaso-J / ai-gitlab-code-review

Automated Code Reviewer for GitLab merge requests
2 stars 3 forks source link

Error when running 'docker-compose build' #2

Open ConFathom opened 6 hours ago

ConFathom commented 6 hours ago

=> ERROR [build 2/2] RUN pnpm run build:ts 3.0s


[build 2/2] RUN pnpm run build:ts:

12 0.994

12 0.994 > openai-gitlab-pr-review@1.0.0 build:ts /gitlab-ai-review

12 0.994 > tsc

12 0.994

12 2.884 src/app.ts(28,17): error TS2769: No overload matches this call.

12 2.884 Overload 1 of 3, '(plugin: FastifyPluginCallback<FastifyEnvOptions, RawServerDefault, FastifyTypeProviderDefault, FastifyBaseLogger>, opts?: FastifyRegisterOptions<...> | undefined): FastifyInstance<...> & PromiseLike<...>', gave the following error.

12 2.884 Object literal may only specify known properties, and 'schema' does not exist in type 'FastifyRegisterOptions'.

12 2.884 Overload 2 of 3, '(plugin: FastifyPluginAsync<FastifyEnvOptions, RawServerDefault, FastifyTypeProviderDefault, FastifyBaseLogger>, opts?: FastifyRegisterOptions<...> | undefined): FastifyInstance<...> & PromiseLike<...>', gave the following error.

12 2.884 Argument of type 'FastifyEnv' is not assignable to parameter of type 'FastifyPluginAsync<FastifyEnvOptions, RawServerDefault, FastifyTypeProviderDefault, FastifyBaseLogger>'.

12 2.884 Target signature provides too few arguments. Expected 3 or more, but got 2.

12 2.884 Overload 3 of 3, '(plugin: FastifyPluginCallback<FastifyEnvOptions, RawServerDefault, FastifyTypeProviderDefault, FastifyBaseLogger> | FastifyPluginAsync<...> | Promise<...> | Promise<...>, opts?: FastifyRegisterOptions<...> | undefined): FastifyInstance<...> & PromiseLike<...>', gave the following error.

12 2.884 Object literal may only specify known properties, and 'schema' does not exist in type 'FastifyRegisterOptions'.

12 2.884 src/prompt/index.ts(1,39): error TS2307: Cannot find module '@gitbeaker/core' or its corresponding type declarations.

12 2.884 src/routes/gitlab-webhook/hookHandlers.ts(4,15): error TS2305: Module '"@gitbeaker/rest"' has no exported member 'WebhookMergeRequestEventSchema'.

12 2.885 src/routes/gitlab-webhook/hookHandlers.ts(37,45): error TS7006: Parameter 'diff' implicitly has an 'any' type.

12 2.885 src/routes/gitlab-webhook/hookHandlers.ts(56,97): error TS2536: Type '"object_kind"' cannot be used to index type 'T'.

12 2.885 src/routes/gitlab-webhook/index.ts(57,24): error TS2339: Property 'object_kind' does not exist on type '{}'.

12 2.885 src/routes/gitlab-webhook/index.ts(58,21): error TS2339: Property 'info' does not exist on type 'FastifyBaseLogger'.

12 2.885 src/routes/gitlab-webhook/index.ts(70,19): error TS2339: Property 'error' does not exist on type 'FastifyBaseLogger'.

12 2.886 src/routes/gitlab-webhook/index.ts(75,17): error TS2339: Property 'info' does not exist on type 'FastifyBaseLogger'.

12 2.886 src/routes/gitlab-webhook/postAIReview.ts(17,25): error TS2339: Property 'error' does not exist on type 'FastifyBaseLogger'.

12 2.886 src/routes/gitlab-webhook/postAIReview.ts(21,25): error TS2339: Property 'error' does not exist on type 'FastifyBaseLogger'.

12 2.886 src/routes/gitlab-webhook/postAIReview.ts(38,25): error TS2339: Property 'info' does not exist on type 'FastifyBaseLogger'.

12 2.886 src/routes/gitlab-webhook/postAIReview.ts(41,77): error TS2339: Property 'object_kind' does not exist on type '{}'.

12 2.887 src/routes/gitlab-webhook/postAIReview.ts(43,25): error TS2339: Property 'info' does not exist on type 'FastifyBaseLogger'.

12 2.887 src/routes/gitlab-webhook/postAIReview.ts(51,25): error TS2339: Property 'info' does not exist on type 'FastifyBaseLogger'.

12 2.887 src/routes/gitlab-webhook/postAIReview.ts(54,27): error TS2339: Property 'error' does not exist on type 'FastifyBaseLogger'.

12 2.887 src/routes/gitlab-webhook/services.ts(2,15): error TS2305: Module '"@gitbeaker/rest"' has no exported member 'RepositoryCompareSchema'.

12 2.887 src/routes/gitlab-webhook/services.ts(38,50): error TS2339: Property 'ok' does not exist on type 'Response'.

12 2.887 src/routes/gitlab-webhook/services.ts(45,28): error TS2339: Property 'json' does not exist on type 'Response'.

12 2.887 src/routes/gitlab-webhook/services.ts(67,11): error TS2339: Property 'text' does not exist on type 'Response'.

12 2.887 src/routes/gitlab-webhook/services.ts(143,48): error TS2339: Property 'ok' does not exist on type 'Response'.

12 2.887 src/routes/gitlab-webhook/types.ts(1,15): error TS2305: Module '"@gitbeaker/rest"' has no exported member 'WebhookPushEventSchema'.

12 2.887 src/routes/gitlab-webhook/types.ts(1,39): error TS2305: Module '"@gitbeaker/rest"' has no exported member 'WebhookMergeRequestEventSchema'.

12 2.921  ELIFECYCLE  Command failed with exit code 2.

Evobaso-J commented 5 hours ago

@ConFathom could you please provide a reproduction?