2,814 questions
0 votes
1 answer
99 views
Angular Fire 19 performance not reporting to console
Problem I'm having trouble getting performance monitoring, built into the sdk (https://firebase.google.com/docs/perf-mon/page-load-traces), to show up in the Firebase Console. What I've tried I've ...
1 vote
1 answer
119 views
Angular Firebase Error: "NullInjectorError: No provider for Firestore2!" in Standalone Component
I'm working on an Angular standalone component using Firebase, and I'm encountering the following error: ERROR NullInjectorError: R3InjectorError(Standalone[_AppComponent])[_FirebaseService -> ...
0 votes
0 answers
43 views
How to find problems in the angular build more easily?
Today I had a problem that never happened in our Angular application. The deployment in production caused some pages not to load correctly, the page only loaded the header (html header) and did not ...
9 votes
0 answers
1k views
RuntimeError: NG0203: The `EnvironmentInjector` token injection failed. Migrating Angular 18 -> 19
I updated Angular from 18 to 19 with ng update @angular/core@19 @angular/cli@19, and manually updated "@angular/core": "^18.0.5" to "@angular/fire": "19.0.0". @...
1 vote
1 answer
60 views
adding user to firestore with Angular js
I am trying to create new user when i signup but i get this error Error adding user to firestore RuntimeError: NG0203: inject() must be called from an injection context such as a constructor, a ...
1 vote
1 answer
247 views
Angular 19 Fire cls is not a constructor
I have an Angular Firebase app with "@angular/cdk": "19.0.4", "@angular/common": "19.0.5", "@angular/compiler": "19.0.5", "@angular/...
0 votes
0 answers
67 views
Firebase: No Firebase App '[DEFAULT]' has been created - call initializeApp() first (app/no-app)
FirebaseError: Firebase: No Firebase App '[DEFAULT]' has been created - call initializeApp() first (app/no-app). when the application is loaded my api try to get the firebase database but the app is ...
1 vote
1 answer
42 views
Angular Unit Test - help spying on angularfire arrayUnion and arrayRemove
I have two similar functions to create/remove items in an array, and the unit tests are blowing up once I hit the arrayUnion and arrayRemove functions from firestore. The error seems to indicate that ...
0 votes
1 answer
51 views
onAuthStateChanged doesn't return the initial null value on iOS
I am migrating an Ionic/Angular app from using a combination of Firebase and Angular/Fire Namespace compat libraries to the Angular/Fire modular libraries. The updated code, using @angular/fire ...
1 vote
1 answer
33 views
Angular Unit Test - How to SpyOn a mock for angularfire delete()
I'm trying to test a simple delete function on a service. deleteCharacter(id: string) { const characterCollectionRef = this.afs.collection<character>('users/' + this.authService.liveUid + '...
2 votes
1 answer
60 views
Angular Unit Testing - Observable without Subscribing
In my auth service, I'm calling a function from angularFireAuth called onAuthStateChanged. The documentation describes this as nextOrObserver with a 'callback triggered on change'. I understand that ...
1 vote
1 answer
76 views
How Do I Provision Multiple Firestore Projects in as Services in Angular 18 using Standalone Components?
I am trying to provision multiple Angularfire Firestore projects as injectable services for my Angular 18 project. Here is my approach: main.ts bootstrapApplication(AppComponent, { providers: [ ...
1 vote
1 answer
49 views
NullInjectError in HomeComponent
I'm getting this error when starting the HomeComponent. The configuration is specified inside the environment file and is correct. Could I be injecting something incorrectly? Do I need to inject ...
0 votes
1 answer
333 views
Angular 18 angular/fire not initializing
I have installed : "@angular/fire": "^18.0.1", My main.ts : import { bootstrapApplication } from '@angular/platform-browser'; import { appConfig } from './app/app.config'; import {...
0 votes
1 answer
71 views
angular/fire@7 storage is not working for my Angular 16 app
I'm trying to use angular/fire@7 storage to store files and I'm getting this error: Error: Uncaught (in promise): Error: Either AngularFireModule has not been provided in your AppModule (this can be ...