-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Error in complilation ERROR in node_modules/@angular/fire/firebase.app.module.d.ts:2:10 - error TS2614 #2622
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Same here! |
This is a duplicate of #2619. |
Same issue here |
Same here |
Please use latest version of Firebase v7 instead of v8 as angularfire is not compatible yet. A pull request has been made addressing this update at #2620. |
Thanks KingDarBoja is working People use : npm install [email protected] angularfire2 --save |
@rogerbobbio Protip: |
Closing in favor of #2619 |
updated with latest version seem still same Angular: Firebase: AngularFire: "export 'auth' was not found in 'firebase/app'
"export 'auth' was not found in 'firebase/app'
"export 'firestore' was not found in 'firebase/app' |
With the new version, now you need to export import firebase from 'firebase/app';
login() {
this.auth.signInWithPopup(new firebase.auth.GoogleAuthProvider());
} |
@sarunint Actually I managed to solve the issue I was having. My Node was v15. I downgraded to v14 and everything served fine. |
same here |
You need to install firebase v8, not v7, take a look at the compatibility table at https://github.com/angular/angularfire#compatibility |
Hello peoples please use version 7 instead of 8 use this npm command and it will work i was also shocked when i got this error but thans to @rogerbobbio and @KingDarBoja |
This is actually the correct install until this is resolved with new @angularfire:
Otherwise 6.0.4 is installed by default and that's broken |
@JefferE |
though it gives some warning but it will solve the issue, try this |
i m still getting the error |
@Chandra1996 the issue is just due to firebase version uninstall previous version remove it from angular.json then reinstall 7.24.0 version nd ng serve again |
Hi ./node_modules/@firebase/auth-compat/node_modules/@firebase/auth/dist/esm2017/index-7078a255.js:784:19-31 - Error: export '_getProvider' (imported as '_getProvider') was not found in '@firebase/app' (possible exports: __esModule, default, firebase) ./node_modules/@firebase/auth-compat/node_modules/@firebase/auth/dist/esm2017/index-7078a255.js:3030:6-17 - Error: export 'SDK_VERSION' (imported as 'SDK_VERSION') was not found in '@firebase/app' (possible exports: __esModule, default, firebase) ./node_modules/@firebase/auth-compat/node_modules/@firebase/auth/dist/esm2017/index-7078a255.js:12058:7-18 - Error: export 'SDK_VERSION' (imported as 'SDK_VERSION') was not found in '@firebase/app' (possible exports: __esModule, default, firebase) ./node_modules/@firebase/auth-compat/node_modules/@firebase/auth/dist/esm2017/index-7078a255.js:12282:7-18 - Error: export 'SDK_VERSION' (imported as 'SDK_VERSION') was not found in '@firebase/app' (possible exports: __esModule, default, firebase) ./node_modules/@firebase/auth-compat/node_modules/@firebase/auth/dist/esm2017/index-7078a255.js:12736:2-20 - Error: export '_registerComponent' (imported as '_registerComponent') was not found in '@firebase/app' (possible exports: __esModule, default, firebase) ./node_modules/@firebase/auth-compat/node_modules/@firebase/auth/dist/esm2017/index-7078a255.js:12803:2-20 - Error: 0mexport '_registerComponent' (imported as '_registerComponent') was not found in '@firebase/app' (possible exports: __esModule, default, firebase) ./node_modules/@firebase/auth-compat/node_modules/@firebase/auth/dist/esm2017/index-7078a255.js:12817:2-17 - Error: export 'registerVersion' (imported as 'registerVersion') was not found in '@firebase/app' (possible exports: __esModule, default, firebase) ./node_modules/@firebase/auth-compat/node_modules/@firebase/auth/dist/esm2017/index-7078a255.js:12819:2-17 - Error: export 'registerVersion' (imported as 'registerVersion') was not found in '@firebase/app' (possible exports: __esModule, default, firebase) ./node_modules/@firebase/auth-compat/node_modules/@firebase/auth/dist/esm2017/index-7078a255.js:12848:23-29 - Error: export 'getApp' (imported as 'getApp') was not found in '@firebase/app' (possible exports: __esModule, default, firebase) ./node_modules/@firebase/auth-compat/node_modules/@firebase/auth/dist/esm2017/index-7078a255.js:12849:19-31 - Error: export '_getProvider' (imported as '_getProvider') was not found in '@firebase/app' (possible exports: __esModule, default, firebase) ./node_modules/@firebase/database-compat/node_modules/@firebase/database/dist/index.esm2017.js:15528:27-33 - Error: export 'getApp' (imported as 'getApp') was not found in '@firebase/app' (possible exports: __esModule, default, firebase) ./node_modules/@firebase/database-compat/node_modules/@firebase/database/dist/index.esm2017.js:15529:9-21 - Error: export '_getProvider' (imported as '_getProvider') was not found in '@firebase/app' (possible exports: __esModule, default, firebase) ./node_modules/@firebase/database-compat/node_modules/@firebase/database/dist/index.esm2017.js:15645:16-29 - Error: export 'SDK_VERSION' (imported as 'SDK_VERSION$1') was not found in '@firebase/app' (possible exports: __esModule, default, firebase) pls help |
This package.json should work: "dependencies": { |
Thank you! This works well with Angular 13 |
This works for angular 14 |
This works for angular 12 too. Thanks! |
Also for Angular 15, the following is working (upgrading from 8 -> 9 solved my issue)
|
Hi, Please help me with the folllowing compiling issue:
I have installed :
My project have the following dependencies:
"@angular/animations": "^10.0.14",
"@angular/cdk": "^10.2.2",
"@angular/common": "~10.0.2",
"@angular/compiler": "~10.0.2",
"@angular/core": "~10.0.2",
"@angular/forms": "~10.0.2",
"@angular/material": "^10.2.2",
"@angular/platform-browser": "~10.0.2",
"@angular/platform-browser-dynamic": "~10.0.2",
"@angular/router": "~10.0.2",
"angularfire2": "^5.4.2",
"chart.js": "^2.9.3",
"firebase": "^8.0.0",
"ng2-charts": "^2.4.1",
"ngx-pagination": "^5.0.0",
"rxjs": "~6.5.5",
"sweetalert2": "^9.17.2",
"tslib": "^2.0.0",
"zone.js": "~0.10.3"
Compilation output
ERROR in node_modules/@angular/fire/firebase.app.module.d.ts:2:10 - error TS2614: Module '"../../firebase"' has no exported member 'auth'. Did you mean to use 'import auth from "../../firebase"' instead?
The text was updated successfully, but these errors were encountered: