@abp/ng.core 6.0.0-rc.5 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1237,6 +1237,16 @@ class DynamicLayoutComponent {
1237
1237
  const key = this.layouts.get(expectedLayout);
1238
1238
  this.layout = this.getComponent(key)?.component;
1239
1239
  this.layoutKey = expectedLayout;
1240
+ if (!this.layout) {
1241
+ this.showLayoutNotFoundError(expectedLayout);
1242
+ }
1243
+ }
1244
+ showLayoutNotFoundError(layoutName) {
1245
+ let message = `Layout ${layoutName} not found.`;
1246
+ if (layoutName === 'account') {
1247
+ message = 'Account layout not found. Please check your configuration. If you are using LeptonX, please make sure you have added "AccountLayoutModule.forRoot()" to your app.module configuration.';
1248
+ }
1249
+ console.warn(message);
1240
1250
  }
1241
1251
  listenToLanguageChange() {
1242
1252
  this.subscription.addOne(this.localizationService.languageChange$, () => {