Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running into type errors during yarn build #2107

Open
py-zoid opened this issue Feb 18, 2025 · 0 comments
Open

Running into type errors during yarn build #2107

py-zoid opened this issue Feb 18, 2025 · 0 comments

Comments

@py-zoid
Copy link

py-zoid commented Feb 18, 2025

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.```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant