-
Notifications
You must be signed in to change notification settings - Fork 102
Running into type errors during yarn build #2107
Copy link
Copy link
Open
Description
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.```
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels