angularfire icon indicating copy to clipboard operation
angularfire copied to clipboard

Module '"@angular/fire"' has no exported member 'AngularFireModule'.ts(2305)

Open ShailaPatilacmeconnect opened this issue 3 years ago • 2 comments

used command npm install firebase @angular/fire --save still getting issue Module '"@angular/fire"' has no exported member 'AngularFireModule'.ts(2305).

i have also used ng add @angular/fire.

it will work only when i use import { AngularFireModule} from '@angular/fire/compat';

package.json

{ "name": "firebase-auth", "version": "0.0.0", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "watch": "ng build --watch --configuration development", "test": "ng test" }, "private": true, "dependencies": { "@angular/animations": "~13.2.0", "@angular/common": "~13.2.0", "@angular/compiler": "~13.2.0", "@angular/core": "~13.2.0", "@angular/forms": "~13.2.0", "@angular/platform-browser": "~13.2.0", "@angular/platform-browser-dynamic": "~13.2.0", "@angular/router": "~13.2.0", "firebase": "^9.6.10", "rxjs": "~7.5.0", "tslib": "^2.3.0", "zone.js": "~0.11.4" }, "devDependencies": { "@angular-devkit/build-angular": "~13.2.5", "@angular/cli": "~13.2.5", "@angular/compiler-cli": "~13.2.0", "@types/jasmine": "~3.10.0", "@types/node": "^12.11.1", "jasmine-core": "~4.0.0", "karma": "~6.3.0", "karma-chrome-launcher": "~3.1.0", "karma-coverage": "~2.1.0", "karma-jasmine": "~4.0.0", "karma-jasmine-html-reporter": "~1.7.0", "typescript": "~4.5.2" } }

ShailaPatilacmeconnect avatar Mar 31 '22 12:03 ShailaPatilacmeconnect

This issue does not seem to follow the issue template. Make sure you provide all the required information.

google-oss-bot avatar Mar 31 '22 12:03 google-oss-bot

#Use this import in Angular/fire:

  • import {AngularFireModule} from '@angular/fire/compat';

IAmAbhishek111 avatar Mar 12 '24 06:03 IAmAbhishek111