当我尝试获取这些项目时,我得到了以下错误:
Type 'Observable<unknown[]>' is not assignable to type 'Observable<Event[]>'.Type 'unknown[]' is not assignable to type 'Event[]'.Type '{}
它使用HttpClient从远程API获取数据。更新后,当我试图编译项目时,我会遇到一些奇怪的错误。这是我的服务班:import {HttpClient} from "@angular/common/http";
import'Observable<{} | Route[]>' is not assig
我想把我的Angular项目从7.3.6 (CLI)更新到最新版本(8.3.16)。这失败了。我照导游说的做了:
我必须隐藏所有更改,因为从字面上看,所有内容都是红色的。在存储之后,仍然没有什么工作,因为一些东西被更新到8.3.16,而另一些不是,我想项目被卡在7.2上了。/custom-validators.ts(78,72): error TS2339: Property 'map' does not exist on type 'Ob
我使用ng-book作为参考,其中一个示例使用observable来获取json数据,但是现在我想使用一个不同的api为我自己的项目检索数据,这个api就是this ,但我得到了一个错误,即"Returnexpression type is not assignable to type Observables“。import { Injectimport {O
我正在为一个大学项目(一个ToDoList移动应用程序)学习Ionic4和Angular。我正在尝试使用AngularFirestore.collection....valueChanges()从我的firestore数据库中获取一些数据,并将其存储在我的自定义服务的成员变量中,以便稍后将其提供给组件错误如下:
Type 'Observable<ToDoList[]>' is missing the following properties from <e
我发现了一个错误:
Type 'Observable<{} | GeneralSettings>' is not assignable to type 'GeneralSettings | ObservableType 'Observable<{} | GeneralSettings>' is not assignable to type 'Observable<