Even I had the issue with this but my project is in modular structure with native federation any help is much appreciated
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app/app.module';
platformBrowserDynamic().bootstrapModule(AppModule);
@NgModule({
declarations: [
AppComponent,
// DialogComponent,
IEAlertComponent,
InformativeBannerComponent,
// ErrorModalComponent,
NotificationBannerComponent,
// EmailPreviewDialogComponent,
// TestEmailDialogComponent,
FooterComponent,
// MultiSearchComponent,
],
bootstrap: [AppComponent],
imports: [
FormsModule,
ReactiveFormsModule,
BrowserModule,
CommonsComponentsModule,
// ChatbotModule,
// FiltersModule,
AppRoutingModule,
BrowserAnimationsModule,
ContactDrawerModule,
HelpDrawerModule,
JsonSchemaFormModule,
MaterialDesignFrameworkModule,
DdcMastheadModule,
DdcSidenavModule,
DdcBannerModule,
DdcLoadingModule,
DdcConfirmationModalModule,
DdcAlertMessageModule
],
providers: [
provideHttpClient(withInterceptorsFromDi()),
{
provide: HTTP_INTERCEPTORS,
useClass: HttpErrorInterceptor,
multi: true,
},
{
provide: APP_INITIALIZER,
useFactory: autherize,
deps: [UserService],
multi: true,
},
ScrollService,
RouteStatusService,
]
})
export class AppModule { }