All Questions
Tagged with google-cloud-firestore angular
2,118
questions
1
vote
2
answers
94
views
angular fire 18.01 null inject error when initiliazing component
Since yesterday night that I have been dealing with this error:
main.ts:5 ERROR NullInjectorError: NullInjectorError: No provider for InjectionToken angularfire2.app.options!
at NullInjector....
2
votes
1
answer
22
views
ERROR Error: getBlob() is only available in Browser-like environments
I am trying to fetch data from Firebase storage using Angularfire 18.0.1 :
import {Storage, getBlob, ref } from '@angular/fire/storage';
async ngOnInit() {
const eventsRef = ref(this.storage, '...
0
votes
1
answer
25
views
Why do i get this ANgular Injector Error , But only in the browser console
I am trying to set up FireStore and keep getting an error in the console after the ap was compiled. The compiler is giving no errors just the browser console.
**Error: Uncaught (in promise): ...
1
vote
0
answers
40
views
PHP webhook and google initializer
i'm trying to set up a webhook to connect my stripe account to my firebase/firestore account and it's not working, i'm getting this message:
webhook.php - Uncaught Error: Class "Google\ApiCore\...
1
vote
1
answer
26
views
Connect to multiple Firestore databases
Currently, I am working on an Angular + Firebase project using the Blaze plan, and I want to know how to connect to multiple Firestore databases within the same Firebase project. However, I haven't ...
0
votes
1
answer
62
views
Strange behavior in AngularFire
I refer to this document to learn AngularFire and works very well in Angular Component.
If I try to move to custom class(FirestoreService please take a look) will occur errors.
FirebaseError: [code=...
0
votes
0
answers
44
views
core.mjs:6531 ERROR TypeError: input2.replace is not a function while retriveing data from firestore
i am follwing this document to rtrieve data in firestore https://www.bezkoder.com/angular-17-firestore-crud/ but I am unable to retrieve it except the type error
export interface ...
1
vote
1
answer
34
views
How do you retrieve most recent Post from a collection of 'posts' in Firestore using Angular?
I'm new to Firebase and Angular and I'm making a Twitter mock-up for practice. I have it to where a user can make a Post and it saves to a collection of 'posts' in Firebase. Now, I'm trying to get it ...
1
vote
0
answers
39
views
What is the equivalent of firebase v7 doc.snapshotChanges() in firebase v10 or angular/fire v16
I have an application running on angular 8 and firebase version 7.4.0 and now we are upgrading to angular 16 and firebase v10.
In the services we have used doc.snapshotChanges() to return an ...
1
vote
1
answer
41
views
AngularFire read a Firestore document only once
Using Angular 17 and AngularFire 17, what is the best method for simply getting document data, just once, from a Firestore record?
I can get it with the following but this seems overkill as I assume I ...
0
votes
0
answers
41
views
No provider for InjectionToken angularfire2.app.options with Angular 17 and Firestore
I added angularfire to my angular 17 standalone component app via
ng add @angular/fire
which seemed to work and modified my app.config.ts:
export const appConfig: ApplicationConfig = {
providers: [...
0
votes
0
answers
19
views
Unexpected Firestore Query Behavior When Limit Exceeds Item Count
I have a Firestore query that looks like this:
query = query.where(fieldName)
);
this.subscription = query
.orderBy("time", "desc")
.endAt(this.firstReference)
.limit(3);
...
0
votes
0
answers
14
views
Angular Firestore Session Persistence and Authorization
I have guards in my Angular app protecting routes from unauthenticated access and also access from users without administrator privileges. The privileges are retrieved from my Firestore database. I've ...
1
vote
1
answer
65
views
Firebase firestore blocks angular app from becoming stable thus blocks hydration in ssr
I have an angular app (17.3.x) with ssr and hydration.
Using firebase firestore, under certain conditions I'm not able to identify, the app doesn't become stable in the client (it does in the server) ...
0
votes
1
answer
44
views
Unable to convert to type from Firestore in Angular
I'm trying to convert data from Firestore into a type in Angular. Though I'm struggling on how to use a converter.
This is my model:
import { QueryDocumentSnapshot } from "@angular/fire/firestore&...