Kesavan Maharajan
Kesavan Maharajan

Reputation: 83

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"

Upvotes: 8

Views: 12027

Answers (6)

I had problems with UserCredential... Changed the type to any and solved it

Upvotes: 0

Utkarsh Singh
Utkarsh Singh

Reputation: 377

try this, it worked for me.

npm install --save firebase @angular/fire -f

Upvotes: 0

Kamesh Kumar Singh
Kamesh Kumar Singh

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

EZCity
EZCity

Reputation: 31

I solved the problem by changing some dependencies versions:

  • rxjs: "5.5.10"
  • firebase: "4.12.1"
  • angularfire2: "5.0.0-rc.6"

Upvotes: 0

Volodymyr Khmil
Volodymyr Khmil

Reputation: 1244

Try this out: update your firebase to version ^5.0.3

Upvotes: 1

Lia
Lia

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

Related Questions