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
In the packages/angular/src/errorhandler.ts#105 you do this: if (error instanceof HttpErrorResponse) {
But this line will always be false, because in your package.json you added @angular/common as dependency instead of peerDependency. This causes the issue that error is always an instance of the HttpErrorResponse of the main project but not an instance of the HttpErrorResponse sitting in the node_modules directory of your library.
This leads to the bug, that every HttpErrorResponse of Angular results in this in the sentry dashboard:
<unknown>
error
Handled unknown error
It can be solved by making at least the @angular/common dependency to a peerDependency.
The text was updated successfully, but these errors were encountered:
Package + Version
@sentry/angular
Description
In the
packages/angular/src/errorhandler.ts#105
you do this:if (error instanceof HttpErrorResponse) {
But this line will always be false, because in your package.json you added
@angular/common
as dependency instead of peerDependency. This causes the issue that error is always an instance of the HttpErrorResponse of the main project but not an instance of the HttpErrorResponse sitting in the node_modules directory of your library.This leads to the bug, that every HttpErrorResponse of Angular results in this in the sentry dashboard:
It can be solved by making at least the @angular/common dependency to a peerDependency.
The text was updated successfully, but these errors were encountered: