coderabbitai / ai-pr-reviewer

AI-based Pull Request Summarizer and Reviewer with Chat Capabilities.
https://coderabbit.ai
MIT License
1.46k stars 277 forks source link

Unable to Build and Run the Code #323

Closed nidhey27 closed 1 year ago

nidhey27 commented 1 year ago

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.

harjotgill commented 1 year ago

Fixed