Seemingly out of the blue, my NgZone functionality has ceased to work. I'm currently in the process of developing an application using Ionic, Angular, and Firebase.
An error is being thrown:
Unhandled Promise rejection: Missing Command Error ; Zone: ; Task: Promise.then ; Value: Missing Command Error undefined
This issue is particularly perplexing as I have been utilizing NgZone in my project for months without any complications. It is integrated into numerous sections of my codebase, but suddenly it has stopped functioning altogether.
I am importing NgZone in the typical manner:
import { Component, Input, NgZone, ViewChild, Injectable } from '@angular/core';
within the constructor:
public zone: NgZone,
and referencing it like so:
this.zone = new NgZone({});
this.afAuth.auth.onAuthStateChanged((user) => {
this.zone.run(() => {
if (user) {
this.rootPage = HomePage
} else {
this.rootPage = LoginPage
console.log("Not logged in")
}
this.splashScreen.hide();
});
});
Despite all this, the NgZone feature is no longer operational...
The dependency called in my package.json is as follows:
"zone.js": "0.8.18"
Any insights on what may be causing this issue or recommended actions? Thank you!