When I load MatProgressSpinnerModule into app.module.ts I get empty NG0203 error with "stacktrace": tQ https://localhost:44378/client/main.js?v=tGcUggioS9SQmuEwtHgBh_nWyK0V2FItGwwRHNtEq90:1 re https://localhost:44378/client/main.js?v=tGcUggioS9SQmuEwtHgBh_nWyK0V2FItGwwRHNtEq90:1 fac https://localhost:44378/client/main.js?v=tGcUggioS9SQmuEwtHgBh_nWyK0V2FItGwwRHNtEq90:1 hydrate https://localhost:44378/client/main.js?v=tGcUggioS9SQmuEwtHgBh_nWyK0V2FItGwwRHNtEq90:1 get https://localhost:44378/client/main.js?v=tGcUggioS9SQmuEwtHgBh_nWyK0V2FItGwwRHNtEq90:1 _resolveInjectorDefTypes https://localhost:44378/client/main.js?v=tGcUggioS9SQmuEwtHgBh_nWyK0V2FItGwwRHNtEq90:1 _resolveInjectorDefTypes https://localhost:44378/client/main.js?v=tGcUggioS9SQmuEwtHgBh_nWyK0V2FItGwwRHNtEq90:1 PM https://localhost:44378/client/main.js?v=tGcUggioS9SQmuEwtHgBh_nWyK0V2FItGwwRHNtEq90:1 create https://localhost:44378/client/main.js?v=tGcUggioS9SQmuEwtHgBh_nWyK0V2FItGwwRHNtEq90:1 wA https://localhost:44378/client/main.js?v=tGcUggioS9SQmuEwtHgBh_nWyK0V2FItGwwRHNtEq90:1 invoke https://localhost:44378/client/polyfills.js:1 onInvoke https://localhost:44378/client/main.js?v=tGcUggioS9SQmuEwtHgBh_nWyK0V2FItGwwRHNtEq90:1 invoke https://localhost:44378/client/polyfills.js:1 run https://localhost:44378/client/polyfills.js:1 run https://localhost:44378/client/main.js?v=tGcUggioS9SQmuEwtHgBh_nWyK0V2FItGwwRHNtEq90:1 bootstrapModuleFactory https://localhost:44378/client/main.js?v=tGcUggioS9SQmuEwtHgBh_nWyK0V2FItGwwRHNtEq90:1 wA https://localhost:44378/client/main.js?v=tGcUggioS9SQmuEwtHgBh_nWyK0V2FItGwwRHNtEq90:1 invoke https://localhost:44378/client/polyfills.js:1 run https://localhost:44378/client/polyfills.js:1 F https://localhost:44378/client/polyfills.js:1 invokeTask https://localhost:44378/client/polyfills.js:1 runTask https://localhost:44378/client/polyfills.js:1 L https://localhost:44378/client/polyfills.js:1 promise callback*d https://localhost:44378/client/polyfills.js:1 scheduleTask https://localhost:44378/client/polyfills.js:1 scheduleTask https://localhost:44378/client/polyfills.js:1 scheduleMicroTask https://localhost:44378/client/polyfills.js:1 F https://localhost:44378/client/polyfills.js:1 then https://localhost:44378/client/polyfills.js:1 bootstrapModule https://localhost:44378/client/main.js?v=tGcUggioS9SQmuEwtHgBh_nWyK0V2FItGwwRHNtEq90:1 636 https://localhost:44378/client/main.js?v=tGcUggioS9SQmuEwtHgBh_nWyK0V2FItGwwRHNtEq90:1 n https://localhost:44378/client/runtime.js:1 <anonymous> https://localhost:44378/client/main.js?v=tGcUggioS9SQmuEwtHgBh_nWyK0V2FItGwwRHNtEq90:1 a https://localhost:44378/client/runtime.js:1 <anonymous> https://localhost:44378/client/main.js?v=tGcUggioS9SQmuEwtHgBh_nWyK0V2FItGwwRHNtEq90:1 app.module.ts: import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { HttpClientModule } from "@angular/common/http"; import { HTTP_INTERCEPTORS } from '@angular/common/http'; import { MatProgressSpinnerModule } from '@angular/material/progress-spinner'; import { AppComponent } from './app.component'; import { SongbookService } from './services/songbookService'; import router from './router'; import { InterceptorService } from './services/InterceptorService'; import { SpinnerService } from './services/spinnerService'; @NgModule({ declarations: [ AppComponent, ], imports: [ BrowserModule, HttpClientModule, BrowserAnimationsModule, MatProgressSpinnerModule, router ], providers: [ SongbookService, { provide: HTTP_INTERCEPTORS, useClass: InterceptorService, multi: true }, SpinnerService ], bootstrap: [AppComponent] }) export class AppModule { } I have no idea how to fix it, when I rem MatProgressSpinnerModule in NgModule imports - error does not appear. Same issue with ngx-spinner. If that matter its SPA in .NET application Continue reading...