angularfire: ERROR in node_modules/angularfire2/firebase.app.module.d.ts(2,42): error TS2305: Module '"/home/kenneth/Projects/coinotc-wallet-api/wallet-mgmt-web/node_modules/firebase/index"' has no exported member 'functions'.
Version info
Angular: “@angular/animations”: “^5.2.8”, “@angular/common”: “5.0.3”, “@angular/compiler”: “5.0.3”, “@angular/compiler-cli”: “5.0.3”, “@angular/core”: “5.0.3”, “@angular/forms”: “5.0.3”, “@angular/http”: “5.0.3”, “@angular/platform-browser”: “5.0.3”, “@angular/platform-browser-dynamic”: “5.0.3”, “@angular/router”: “^5.1.3”,
Firebase: “@firebase/app”: “^0.1.10”, “@firebase/app-types”: “^0.3.1”, “firebase”: “^4.13.1”,
AngularFire: “angularfire2”: “^5.0.0-rc.7”,
Other (e.g. Ionic/Cordova, Node, browser, operating system): cli packages: (/usr/lib/node_modules)
@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0
global packages:
cordova (Cordova CLI) : 8.0.0
local packages:
@ionic/app-scripts : 3.1.9
Cordova Platforms : android 6.3.0 browser 5.0.3
Ionic Framework : ionic-angular 3.9.2
System:
Android SDK Tools : 26.1.1
Node : v8.11.2
npm : 6.1.0
OS : Linux 4.13
Environment Variables:
ANDROID_HOME : /home/kenneth/Android/Sdk
Misc:
backend : pro
node v8.11.2
Ubuntu 16.04
Chrome Version 67.0.3396.62 (Official Build) (64-bit)
How to reproduce these conditions
Failing test unit, Plunkr, or JSFiddle demonstrating the problem
Steps to set up and reproduce
On the terminal just run ionic cordova build android
Sample data and security rules
<-- include/attach/link to some json sample data (or provide credentials to a sanitized, test Firebase project) -->
Debug output
** Errors in the JavaScript console **
** Output from firebase.database().enableLogging(true);
**
** Screenshots **
Expected behavior
No compilation error when perform ionic cordova build android/ios
ERROR in node_modules/angularfire2/firebase.app.module.d.ts(2,42): error TS2305: Module ‘“/home/kenneth/Projects/coinotc-wallet-api/wallet-mgmt-web/node_modules/firebase/index”’ has no exported member ‘functions’.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 32 (4 by maintainers)
There is a problem with “angularfire2”: “^5.0.0-rc.10” The solution for me was uninstall angularfire2^5.0.0-rc.10 and install angularfire2^5.0.0-rc.9
npm uninstall angularfire2 npm install angularfire2@5.0.0-rc.9
I got the same error fixed with the following version combination
I have the same error until have to delete
node_modules/firebase
andnode_modules/angularfire2
withpackage.lock
. You should check the package.json of the library in node_modules. It wont update event you install new one.For anyone else that runs across this issue it most likely has to do with your
firebase
version not being compatible with yourangularfire2
version.5.0.3+
On Sat, May 26, 2018, 2:26 AM mohit kumar singh notifications@github.com wrote:
this solve for me npm install node-pre-gyp -g
what a mess… always this problem between JS libs.
So any solution so far?
I had to go back to old pc where the project is working with existing environment setup and continue developing from that machine.
I am experiencing this issue in ionic, so the next solution might be to create new project using ionic4 and move old project to new one
omg ! can we have a backward compatible version ?
But than you have to change rxjs version to 6.0 as well, which I don’t want.
I am new in npm, I still get the same problem when I type “ng serve” even if my version are the latest, I need help please! thanks in advance.
Version: angularfire2@5.0.0-rc.10 firebase@5.0.4
Error message
ERROR in node_modules/angularfire2/firebase.app.module.d.ts(2,42): error TS2305: Module ‘“D:/NPM projects/excel2firestore/node_modules/firebase/index”’ has no exported member ‘functions’.
i 「wdm」: Failed to compile.
which firebase verion is to be compatible with latest 5.0.0-rc.10?
edit: firebase 5.0.4 does it.