我正在尝试在 firebase 中托管我的应用程序,在 localhost 中一切正常,但是当我在 firebase 域的 firebase 中成功托管应用程序时,它显示:
NullInjectorError: StaticInjectorError(wo)[class{constructor(t,e) at SpinnerService at content is not loaded.
我试图在提供者数组中插入提供ngxModule和ngxSpinnerService,但我仍然有同样的问题。
我的代码:app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { ReactiveFormsModule,FormsModule } from '@angular/forms';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import {NgxPaginationModule} from 'ngx-pagination';
import { CommonModule } from '@angular/common';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { HomeComponent } from './home/home.component';
import { HttpClientModule …Run Code Online (Sandbox Code Playgroud)