This commit is contained in:
AdelSkiDzNew 2024-11-29 00:51:34 +00:00 committed by GitHub
commit 4efe0f7aec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -156,7 +156,7 @@ export const NB_CORE_PROVIDERS = [
})
export class CoreModule {
constructor(@Optional() @SkipSelf() parentModule: CoreModule) {
throwIfAlreadyLoaded(parentModule, 'CoreModule');
throwIfAlreadyLoaded(parentModule, CoreModule.name);
}
static forRoot(): ModuleWithProviders<CoreModule> {