coderabbitai/ai-pr-reviewer

Unable to Build and Run the Code

nidhey27 opened this issue · 1 comments

We are currently using Node.js v18.16.0 and NPM version 9.5.1 to build and run our code. However, we are facing issues with the build and run processes.

ERROR

> openai-pr-reviewer@0.0.0 build
> cp node_modules/@dqbd/tiktoken/tiktoken_bg.wasm dist/tiktoken_bg.wasm && tsc

src/octokit.ts:12:5 - error TS2322: Type '(retryAfter: number, options: any, _o: Octokit, retryCount: number) => boolean' is not assignable to type 'LimitHandler'.
  Types of parameters '_o' and 'octokit' are incompatible.
    Type 'Octokit' is not assignable to type 'Octokit & { paginate: PaginateInterface; } & RestEndpointMethods & Api'.
      Property 'paginate' is missing in type 'Octokit' but required in type '{ paginate: PaginateInterface; }'.

12     onRateLimit: (
       ~~~~~~~~~~~

  node_modules/@octokit/action/dist-types/index.d.ts:4:5
    4     paginate: import("@octokit/plugin-paginate-rest").PaginateInterface;
          ~~~~~~~~
    'paginate' is declared here.


Found 1 error in src/octokit.ts:12

Any assistance or guidance on resolving this issue would be greatly appreciated.

Fixed