Layr-Labs / hello-world-avs

Hello World AVS
MIT License
44 stars 34 forks source link

make start-operator fails with Error #19

Closed ikmzkro closed 2 weeks ago

ikmzkro commented 2 weeks ago

Hello,

make start-chain-with-contracts-deployed is working fine. But, make start-operator fails with these error.

~/hello-world-avs$ make start-operator
tsc && node dist/index.js
node_modules/@types/node/crypto.d.ts:3569:17 - error TS1110: Type expected.

3569     type UUID = `${string}-${string}-${string}-${string}-${string}`;
                     ~~~

node_modules/@types/node/events.d.ts:104:28 - error TS1005: ',' expected.

104     type AnyRest = [...args: any[]];
                               ~

node_modules/@types/node/test.d.ts:950:34 - error TS1005: '?' expected.

950             : F extends abstract new(...args: any) => infer T ? T
                                     ~~~

node_modules/@types/node/test.d.ts:950:63 - error TS1005: ':' expected.

950             : F extends abstract new(...args: any) => infer T ? T

...
...
...

node_modules/@types/node/util.d.ts:1765:1 - error TS1128: Declaration or statement expected.

1765 }
     ~
Found 41 errors.
make: *** [Makefile:49: start-operator] Error 2

node -v v20.14.0



I want to check if the version is correct.
I also want to check if there are any additional steps required besides the README.
ikmzkro commented 1 week ago

I resolved it by changing it as follows

start-operator: ## start operator (part of quickstart)
    npx tsc && node dist/index.js