You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ npm run build
> @cybozu/duck@0.33.3 build
> tsc
node_modules/@types/verror/index.d.ts:31:5 - error TS2416: Property 'cause' in type 'VError' is not assignable to the same property in base type 'Error'.
Property 'message' is missing in type '() => Error | undefined' but required in type 'Error'.
31 cause(): Error | undefined;
~~~~~
node_modules/typescript/lib/lib.es5.d.ts:1023:5
1023 message: string;
~~~~~~~
'message' is declared here.
node_modules/@types/verror/index.d.ts:31:5 - error TS2425: Class 'Error' defines instance member property 'cause', but extended class 'VError' defines it as instance member function.
31 cause(): Error | undefined;
~~~~~
Found 2 errors in the same file, starting at: node_modules/@types/verror/index.d.ts:31
tsc throws errors with typescript@4.6.
It will be resolved in next TypeScript 4.8.
See
@types/verror
to work withes2022.error
on TS4.8
by voxpelli · Pull Request #61199 · DefinitelyTyped/DefinitelyTypedThe text was updated successfully, but these errors were encountered: