Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular 6 - '"/node_modules/firebase/index"' has no exported member 'functions'

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"
like image 608
Kesavan Maharajan Avatar asked Jun 16 '18 09:06

Kesavan Maharajan


3 Answers

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]
like image 190
Fateme Fazli Avatar answered Oct 19 '22 09:10

Fateme Fazli


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
like image 22
Kamesh Kumar Singh Avatar answered Oct 19 '22 11:10

Kamesh Kumar Singh


Try this out: update your firebase to version ^5.0.3

like image 30
Volodymyr Khmil Avatar answered Oct 19 '22 09:10

Volodymyr Khmil