if the remote application is down, the host application crashes as well. This behavior is causing unexpected disruptions.
Could any one please suggest a way to handle this scenario gracefully, perhaps by adding error handling or a fallback mechanism?
My main.ts file
import {loadManifest } from '@angular-architects/module-federation';
loadManifest('assets/mf.manifest.json')
.catch(err => console.error(err))
.then(_ => import('./bootstrap'))
.catch(err => console.error(err));
and my app-routing.module.ts
{
path: 'remote',
loadChildren: () => loadRemoteModule({
type: 'manifest',
remoteName: 'remote',
exposedModule: './cadmin'
}).then(r => r.cadmin)
},
I have added logs in every host module, the logs are printing, basically , I am verifying if the remote app is down, whether the host app is initializing properly or not, the host bootstrapping properly , How to run host app smoothly, even remote app down?
I am getting below error
Uncaught (in promise): TypeError: angular_core__WEBPACK_IMPORTED_MODULE_0_.ɵɵtemplate(...) is not a function TypeError: angular_core__WEBPACK_IMPORTED_MODULE_0_.ɵɵtemplate(...) is not a function at MatFormField_Template (http://localhost:4200/node_modules_angular_material_fesm2022_form-field_mjs-_29e30.js:4580:115) at executeTemplate
Note: when the Remote App is not down, its working fine, i am getting above issue only when the remote app is down