Fix post-upgrade errors

This commit is contained in:
eugene-sinitsyn 2020-03-03 15:41:09 +03:00
parent d673c512ec
commit 88020acd3e
6 changed files with 17 additions and 25 deletions

View file

@ -153,9 +153,6 @@ export const NB_CORE_PROVIDERS = [
NbAuthModule,
],
declarations: [],
providers: [
...NB_CORE_PROVIDERS
]
})
export class CoreModule {
constructor(@Optional() @SkipSelf() parentModule: CoreModule) {
@ -163,7 +160,7 @@ export class CoreModule {
}
static forRoot(): ModuleWithProviders<CoreModule> {
return <ModuleWithProviders>{
return {
ngModule: CoreModule,
providers: [
...NB_CORE_PROVIDERS,