Getting 'The timestampsInSnapshots setting now defaults to true' firestore error in console

Asked
Active3 hr before
Viewed126 times

5 Answers

defaultsgettingconsolesettingerrortimestampsinsnapshots
90%

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement, We’ll occasionally send you account related emails

Example_snippet/controller/utility/_defaults.js/ @firebase/firestore: Firestore. . .
@firebase / firestore: Firestore(5.8 .0):
   The timestampsInSnapshots setting now defaults to true and you no
longer need to explicitly set it.In a future release, the setting
will be removed entirely and so it is recommended that you remove it
from your firestore.settings() call now.
load more v
88%

I am getting the following error from Firestore in console, in Angular,,In general, we configure firebase in our app in the following way:,For the above configuration, It shows the following warning:,In Order to resolve it, Just simply remove the timestampsInSnapshots attribute from the settings parameter

Example_snippet/controller/utility/_defaults.js/ import { FirestoreSettingsToke. . .
import {
   FirestoreSettingsToken
} from '@angular/fire/firestore';
Step 2 continued with providers: [{ provide: Firesto. . .
providers: [{
   provide: FirestoreSettingsToken,
   useValue: {}
}]
load more v
72%

In Order to resolve it, Just simply remove the timestampsInSnapshots attribute from the settings parameter, After fixing, your config should be changed to:,@firebase/firestore: Firestore (5

Example_snippet/controller/utility/_defaults.js/ import { FirestoreSettingsToke. . .
import {
   FirestoreSettingsToken
} from '@angular/fire/firestore';
Step 2 continued with providers: [{ provide: Firesto. . .
providers: [{
   provide: FirestoreSettingsToken,
   useValue: {}
}]
load more v
65%

An error message shows in the FIrebase Cloud Functions Logs when modifying a Firestore doc with a timestamp,,In a Cloud Function, modify a Firestore doc with a timestamp property

Example_snippet/controller/utility/_getting.js/ @firebase/firestore: Firestore. . .
@firebase / firestore: Firestore(5.8 .0):
   The timestampsInSnapshots setting now defaults to true and you no
longer need to explicitly set it.In a future release, the setting
will be removed entirely and so it is recommended that you remove it
from your firestore.settings() call now.
load more v
75%

Go to your app,modules

Example_snippet/controller/utility/_getting.js/ import { FirestoreSettingsToke. . .
import {
   FirestoreSettingsToken
} from '@angular/fire/firestore';
load more v