Angular 4 + AOT + Firebasestore问题

时间:2018-01-11 19:43:33

标签: firebase angularfire

我被困在这个错误上。在angularfire2上,新手可以解决它

import { InjectionToken } from '@angular/core';
import { FirebaseAppConfig } from './';
import * as firebase from 'firebase/app';
export declare const FirebaseAppConfigToken: InjectionToken<FirebaseAppConfig>;
export declare class FirebaseApp implements firebase.app.App {
    name: string;
    options: {};
    auth: () => firebase.auth.Auth;
    database: () => firebase.database.Database;
    messaging: () => firebase.messaging.Messaging;
    storage: () => firebase.storage.Storage;
    delete: () => Promise<any>;
    firestore: () => firebase.firestore.Firestore;
}
export declare function _firebaseAppFactory(config: FirebaseAppConfig, appName?: string): FirebaseApp;

1 个答案:

答案 0 :(得分:0)

升级到AngularFire 5.0,您就可以访问Firestore。