Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

246
Views
Module '"@angular/fire/firestore"' has no exported member 'AngularFirestoreModule'

import { AngularFirestoreModule } from '@angular/fire/firestore' ; // => Error

Module '"@angular/fire/firestore"' has no exported member 'AngularFirestoreModule'

package.json

"@angular/fire": "^7.0.4",

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

I encountered the same problem and in the GitHub repo (https://github.com/angular/angularfire) is explained how to adjust the code for the new version

import { Firestore, collectionData, collection } from '@angular/fire/firestore';
import { Observable } from 'rxjs';
...
item$: Observable<Item[]>;
constructor(firestore: Firestore) {
    const collection = collection(firestore, 'items');
    this.item$ = collectionData(collection);
  }

You also have to change the way you initialize the app in the app.module.ts

import { provideFirebaseApp, getApp, initializeApp } from '@angular/fire/app';
import { getFirestore, provideFirestore } from '@angular/fire/firestore';

@NgModule({
  imports: [
    provideFirebaseApp(() => initializeApp({ ... })),
    provideFirestore(() => getFirestore()),
  ],
  ...
})
over 4 years ago · Santiago Trujillo Report

0

Angular has changed its angularfire syntax right away. Check their github repo; thus just google Angularfire github and you will see their new codes. I myself am disappointed Angular has to change their firebase codes...\

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!