I recently set up Angular 2 Fire on my project.
"angularfire2": "^5.0.0-rc.0",
Now, in my root module (app module), I have the following setup:
export const firebaseConfig = {
apiKey: "mykey",
authDomain: "....",
databaseURL: "...",
projectId: "...",
storageBucket: "...",
messagingSenderId: "..."
};
imports:[
AngularFireModule.initializeApp(firebaseConfig),
AngularFireDatabaseModule
]
However, I encountered an error message:
Class 'FirebaseApp' incorrectly implements interface 'App'.
Property 'firestore' is missing in type 'FirebaseApp'.
node_modules/angularfire2/firebase.app.module.d.ts (12,28):
Namespace 'firebase' has no exported member 'Promise'.
I'm unsure where I went wrong or what additional steps I need to take to resolve this issue and make it work correctly.