使用了angular-in-memory-web-api后ng-zorro的Icon都报 does not exist 错误

新手上路,请多包涵

在根模块加入了angular-in-memory-web-api后使用ng-zorro的Icon都报 does not exist 错误,取消angular-in-memory-web-api模块后就正常了

@NgModule({
  declarations: [
    AppComponent,
  ],
  imports: [
    BrowserModule,
    FormsModule,
    NgZorroAntdModule,
    HttpClientModule,
    //angular-in-memory-web-api模块//取消后就可以正常使用图标了
    InMemoryWebApiModule.forRoot(SimulatDbService),
    BrowserAnimationsModule,
    RoutingModule,
  ],
  bootstrap: [AppComponent],
  providers: [{ provide: NZ_I18N, useValue: zh_CN }]
})
阅读 1.1k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进