-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
ApolloError
class missing name
property
#9322
Comments
aaronadamsCA
added a commit
to aaronadamsCA/apollo-client
that referenced
this issue
Jan 18, 2022
2 tasks
brainkim
pushed a commit
to aaronadamsCA/apollo-client
that referenced
this issue
Jan 20, 2022
jerelmiller
pushed a commit
to aaronadamsCA/apollo-client
that referenced
this issue
Nov 18, 2022
jerelmiller
added a commit
that referenced
this issue
Nov 18, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
ApolloError
extendsError
, but it doesn't havethis.name = 'ApolloError'
, meaningApolloError
objects don't have aname
property.This breaks TypeScript type safety, since
Error
has a non-optional propertyname: string
. It's also causing Sentry to complainNon-Error exception captured
every time it receives anApolloError
object, because it's missing itsname
, which is what led me to report this.The text was updated successfully, but these errors were encountered: