It happen at the first I do compile my project.
The problem showing this:
Module '".../node_modules/@angular/fire/firestore/angular-fire-firestore"' has no exported member 'FirestoreSettingsToken'
my app.module.ts file:
import { NgModule } from '@angular/core';
...
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
import { AngularFireModule } from '@angular/fire';
import { environment } from '../environments/environment';
import { AngularFirestoreModule, FirestoreSettingsToken } from '@angular/fire/firestore';
@NgModule({
declarations: [AppComponent],
entryComponents: [],
imports: [
...
AngularFireModule.initializeApp(environment.firebaseConfig),
AngularFirestoreModule,
],
With providers:
{provide: FirestoreSettingsToken, useValue: { }}
My tools:
Firestore: 8.0.2
Angular, Firebase, npm: 6.13.4
See the rlease notes of Angular Fire 6 at. https://github.com/angular/angularfire/releases
Dropped the FirestoreSettingsToken DI token in favor of SETTINGS
Just replace FirestoreSettingsToken with SETTINGS, and you should be fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With