RetellAI / retell-custom-llm-node-demo

Apache License 2.0
40 stars 31 forks source link

Compiling typescript to javascript #4

Open snmishra311 opened 5 months ago

snmishra311 commented 5 months ago

Hi, when i run the tsc command, i get the following error. I suspect it may be an error in the SDK. Any advice on how to proceed?

node_modules/retell-sdk/lib/security.d.ts:8:69 - error TS2304: Cannot find name 'ErrorOptions'.

8 constructor(code: SecurityErrorCode, message: string, options?: ErrorOptions);



Found 1 error in node_modules/retell-sdk/lib/security.d.ts:8
AustinZzx commented 5 months ago

Could you try installing the latest version of this package and see if that fixes it.

a-pujahari commented 5 months ago

Is there any working solution to this issue yet? I've encountered this issue today

a-pujahari commented 5 months ago

This was fixed by adding "ES2022" to the lib array within tsconfig.json file