I keep getting this error whenever the app is launched. It doesn’t appear to cause any other issues but the error appears and I’d like to get it resolved before the deploying the app.
Angular is running in the development mode. Call enableProdMode() to enable the production mode.
/plugins/cordova-plugin-fcm-with-dependecy-updated/www/FCMPlugin.js:6 FCMPlugin.js: is created
/plugins/cordova-plugin-fcm-with-dependecy-updated/www/FCMPlugin.js:59 FCMPlugin Ready OK
vendor.js:114077 Ionic Native: deviceready event fired after 910 ms
Failed to load resource: the server responded with a status of 404 ()
polyfills.js:3040 Unhandled Promise rejection: Error Status 404: App not found ; Zone: <root> ; Task: Promise.then ; Value: Error: Error Status 404: App not found
at IonicDeployImpl.<anonymous> (/plugins/cordova-plugin-ionic/dist/common.js:291)
at step (/plugins/cordova-plugin-ionic/dist/common.js:37)
at Object.next (/plugins/cordova-plugin-ionic/dist/common.js:18)
at fulfilled (/plugins/cordova-plugin-ionic/dist/common.js:9)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (polyfills.js:2749)
at Zone.push../node_modules/zone.js/dist/zone.js.Zone.run (polyfills.js:2508)
at polyfills.js:3247
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (polyfills.js:2781)
at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (polyfills.js:2553)
at drainMicroTaskQueue (polyfills.js:2959) Error: Error Status 404: App not found
at IonicDeployImpl.<anonymous> (http://localhost/plugins/cordova-plugin-ionic/dist/common.js:291:35)
at step (http://localhost/plugins/cordova-plugin-ionic/dist/common.js:37:23)
at Object.next (http://localhost/plugins/cordova-plugin-ionic/dist/common.js:18:53)
at fulfilled (http://localhost/plugins/cordova-plugin-ionic/dist/common.js:9:58)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (http://localhost/polyfills.js:2749:26)
at Zone.push../node_modules/zone.js/dist/zone.js.Zone.run (http://localhost/polyfills.js:2508:43)
at http://localhost/polyfills.js:3247:34
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (http://localhost/polyfills.js:2781:31)
at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (http://localhost/polyfills.js:2553:47)
at drainMicroTaskQueue (http://localhost/polyfills.js:2959:35)
api.onUnhandledError @ polyfills.js:3040
Here is my app.component code:
initializeApp() {
this.platform.ready().then(() => {
this.statusBar.styleDefault();
this.splashScreen.hide();
if (!firebase.apps.length) {
firebase.initializeApp(firebaseConfig);
const unsubscribe = firebase.auth().onAuthStateChanged( user => {
if (!user) {
this.router.navigateByUrl('login');
// unsubscribe();
} else {
this.router.navigateByUrl('tabs/itinerary-feed');
// unsubscribe();
}
});
}
});
}```
I've tried removing my node_modules and plugin folders and running
npm install @ionic/app-scripts@latest --save-dev to no avail.
I've read in some forums it may be a ngZone issue but doesn't provide any resolutions. Any help would be greatly appreciated.