-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error Constructor does not accept more than one argument #49535
Comments
|
@MartinJohns I didn't realize |
7 tasks
In my tsconfig I have
But anyway I got this error. What the way to fix? |
Please provide the rest of your |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Reading the MDN, I noticed that we can pass multiple arguments to the
Error
constructorMDN - Error
cause
Testing out whether the Node implementation of
Error
allows this, I came up with this codeI tried instantiating an
Error
instance as followsI got the following error
It appears that the type declarations for
Error
constructor should be updated to accommodate this.The text was updated successfully, but these errors were encountered: