从角度5到6(使用角度6和rxjs 6),在我的林特中得到以下两个错误。任何人有任何想法,请和谢谢。
[ts] 'catchError' is declared but its value is never read.
[ts] Property 'catchError' does not exist on type 'Observable<HttpEvent<any>>'.
import { Injectable, Injector } from '@angular/core';
import { Htt
我创建了一个HttpInterceptor (Angular5),以便为每个xhr请求添加"withCredentials: true“。但每次我调用任何http请求时,我都会得到以下错误:
ERROR TypeError: this.interceptor.intercept is not a function
at HttpInterceptorHandler.handle (http.js:1777)
at HttpXsrfInterceptor.intercept (http.js:2470)
at HttpInterceptorHandler.handle (http.js:
我有一个http拦截器,它在一个角6应用程序中工作得很好,但是在刚刚从5升级到6的另一个应用程序中,构建应用程序会导致以下错误
ERROR in src/app/loading.interceptor.ts(32,5): error TS2322: Type 'Observable<{} | HttpProgressEvent | HttpSentEvent | HttpHeaderResponse | HttpResponse<any> | Http...' is not assignable to type 'Observable<HttpE