Having an issue while trying to integrate @angular/pwa, it keeps showing me an error saying "Bootstrap call not found". It's worth mentioning that I have removed app.module.ts
and am using standalone components in various places without any module. Currently, my application is bootstraping from main.ts
as shown below:
bootstrapApplication(AppComponent, {
providers: [
importProvidersFrom(AuthService),
importProvidersFrom(ErrorHandlerService),
importProvidersFrom(HttpClientModule),
importProvidersFrom(
RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules }),
BrowserAnimationsModule
),
{
provide: ErrorHandler,
useClass: ErrorHandlerService
}
]
}).catch((err) => console.log(err));
Angular Version:
Angular CLI: 14.1.1
Node: 16.16.0
Package Manager: npm 8.15.1
OS: linux x64
Angular: 14.1.1
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, language-service, material, platform-browser
... platform-browser-dynamic, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1401.1
@angular-devkit/build-angular 14.1.1
@angular-devkit/core 14.1.1
@angular-devkit/schematics 14.1.1
@schematics/angular 14.1.1
rxjs 7.5.5
typescript 4.6.4