Reputation: 83
ERROR in node_modules/angularfire2/firebase.app.module.d.ts(2,42): error TS2305: Module '"project/node_modules/firebase/index"' has no exported member 'functions'
I'm using,
"@angular/cdk": "^6.2.1",
"angularfire2": "^5.0.0-rc.10",
"firebase": "^4.13.1"
Upvotes: 8
Views: 12027
Reputation: 810
I had problems with UserCredential... Changed the type to any and solved it
Upvotes: 0
Reputation: 377
try this, it worked for me.
npm install --save firebase @angular/fire -f
Upvotes: 0
Reputation: 651
I was also getting the similar errors. It was obviously the version compatibility errors. I tried changing the versions of angularfire2
amd angular
in package.json
but none of them work. Finally I updated the firebase to the latest version using the following command and all the errors vanished in one go. Try out this command:
npm install --save firebase@latest
Upvotes: 3
Reputation: 31
I solved the problem by changing some dependencies versions:
Upvotes: 0
Reputation: 11982
There is a problem with "angularfire2": "^5.0.0-rc.10"
The solution is uninstall angularfire2^5.0.0-rc.10
and install angularfire2^5.0.0-rc.9
:
npm uninstall angularfire2
npm install [email protected]
Upvotes: 20