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
Upgrading to node 18+, getting "error TS2425: Class 'Exception' defines instance member property 'cause', but extended class 'TraceError' defines it as instance member function"
#14
Open
taschmidt opened this issue
Apr 1, 2024
· 1 comment
ES2022 added a cause property to the Error class (ref link) which breaks this lib.
The error thrown is:
node_modules/trace-error/src/TraceError.d.ts:77:16 - error TS2425: Class 'Exception' defines instance member property 'cause', but extended class 'TraceError' defines it as instance member function.
77 public cause(index?: number): Error | undefined;
The text was updated successfully, but these errors were encountered:
ES2022 added a
cause
property to theError
class (ref link) which breaks this lib.The error thrown is:
The text was updated successfully, but these errors were encountered: