Skip to content

Running into type errors during yarn build #2107

@py-zoid

Description

@py-zoid

Receiving the following error when building the relayer-v3 on ubuntu and node v20.18.3.

src/libexec/RelayerSpokePoolIndexer.ts:217:23 - error TS2769: No overload matches this call.
  Overload 1 of 2, '(intervalId: string | number | Timeout): void', gave the following error.
    Argument of type 'Timer' is not assignable to parameter of type 'string | number | Timeout'.
      Property '[Symbol.dispose]' is missing in type 'Timer' but required in type 'Timeout'.
  Overload 2 of 2, '(id: number): void', gave the following error.
    Argument of type 'Timer' is not assignable to parameter of type 'number'.

217         clearInterval(interval);
                          ~~~~~~~~

  node_modules/@types/node/timers.d.ts:130:17
    130                 [Symbol.dispose](): void;
                        ~~~~~~~~~~~~~~~~
    '[Symbol.dispose]' is declared here.

src/libexec/RelayerSpokePoolIndexer.ts:300:12 - error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
  Type 'string' is not assignable to type 'number'.

300       exit(process.exitCode);
               ~~~~~~~~~~~~~~~~

src/libexec/SpokePoolListenerExperimental.ts:275:12 - error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
  Type 'string' is not assignable to type 'number'.

275       exit(process.exitCode);
               ~~~~~~~~~~~~~~~~


Found 3 errors.```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions