Когда я пишу службу в angular 6, это выдает мне следующую ошибку:
Тип 'Observable>' нельзя назначить типу 'Observable'
здесьмой сервисный код
constructor(private http: HttpClient, private _configuration: Configuration, private router: Router) {
this.actionUrl = _configuration.ServerWithApiUrl;
this._optionBearer = { headers: new HttpHeaders(
{
'Content-Type': 'application/json',
'Authorization': 'Bearer ' + localStorage.getItem('access_token')
}
)};
}
public getList<T>(apiUrl: any): Observable<T> {
return this.http.get<T>(this.actionUrl + apiUrl, this._optionBearer);
}

Пожалуйста, помогите мне решить мою проблему