我对离子框架世界很陌生,现在我正试图为一个学校项目创建一个应用程序。为了在应用程序中保存数据,我将使用firebase (这是第一次)。我试图将Angularfire和FirebaseListObservable导入到我的.ts文件中,但是我得到了以下错误消息:
no 2305:模块"'C:/Users/matss/myRecords/node_modules/angularfire2/index"‘没有导出成员'AngularFire’。
这是我在app.module.ts的进口
import { AngularFireModule } from 'a
在控制台"ng new 'project name'"中创建一个新的角(我的角版本: 6.14.10)项目之后,用npm:“firebase@4.2.0”和“angularfire2@4.0.0-rc-1”安装这些库(因为我遵循旧的角度过程),像他在视频中所做的那样编辑app.module.ts文件:
import { environment } from “./…/environments/environment”;
import { BrowserModule } from “@angular/platform-browser”;
import { Ng
我使用的是角为14.2.4的AngularFire 7.4.1和RxFire 6.0.3
由于我的角度从12更新到15,AngularFire抛出了以下错误:
ERROR FirebaseError: Expected type 'Ea', but it was: a custom Ta object
我正在从@角/火导入所有内容,包括模块设置所需的方法:
import { connectFirestoreEmulator, getFirestore, provideFirestore } from "@angular/fire/firestore";
...
我试图使用firebase从angularfire获取数据,但我抛出了错误作为TypeError: $firebaseArray.$loaded is not a function。怎么解决这个问题?
这是我的工厂模块:
(function () {
"use strict";
angular
.module("tcpApp")
.factory("server", ['$resource','$firebaseArray', function ($resourc