From 8d4d79eeb7a831bfcf0b63cad9ee8d0a07d2a8bb Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Mon, 22 Apr 2024 15:05:17 +0200 Subject: [PATCH] tsconfig: switch to es6 target to fix issue with Twirp client for next commit otherwise it returns: node_modules/twirp-ts/build/twirp/errors.d.ts:28:5 - error TS2425: Class 'Error' defines instance member property 'cause', but extended class 'TwirpError' defines it as instance member function. Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- tsconfig.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 6b1812a..9be7112 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,9 +1,8 @@ { "compilerOptions": { "esModuleInterop": true, - "target": "ES2022", - "module": "nodenext", - "moduleResolution": "nodenext", + "target": "es6", + "module": "commonjs", "strict": true, "declaration": true, "sourceMap": true,