Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Namespace 'firebase' has no exported member 'firestore'

Just started using AngularFire2 v5 seeing the following error about a dozen times when I run the app: Namespace 'firebase' has no exported member 'firestore' in the following .d.ts files:

node_modules/angularfire2/firebase.app.module.d.ts
node_modules/angularfire2/firestore/collection/changes.d.ts
node_modules/angularfire2/firestore/firestore.d.ts
node_modules/angularfire2/firestore/interfaces.d.ts
node_modules/angularfire2/firestore/observable/fromRef.d.ts

I'm on "angularfire2": "^5.0.0-rc.3".

like image 613
David Haddad Avatar asked Nov 06 '17 10:11

David Haddad


2 Answers

I had the same issue. I was having firebase version 4.4.0 . Then i upgraded to 4.5.0
npm i --save firebase@^4.5.0

Now its working fine for me.

like image 172
jithin john Avatar answered Nov 01 '22 10:11

jithin john


Double check your version of angularfire2. It downgrades to RC0 if you do an npm update, which I've noticed from their issue tracker is cause for a big amount of grief.

like image 1
DarkNeuron Avatar answered Nov 01 '22 11:11

DarkNeuron