Angular 6 Service is undefined after injecting in Interceptor
问题 I can't find any way to inject my AuthService inside ErrorHandlerInterceptor . It returns me either an " undefined " object after injection, or it throws an error. This is my ErrorHandlerInterceptor : import { Injectable } from '@angular/core'; import { AuthService } from '@app/auth.service'; import { StorageService } from '@app/storage.service'; @Injectable({ providedIn: 'root' }) export class ErrorHandlerInterceptor implements HttpInterceptor { constructor(private authService: AuthService,