Я работаю над своим angular 7.x приложением. Приложение использует код моей библиотеки. все работает хорошо локально, и когда я разверну в другой среде, он не работает, как ожидалось. При отладке можно увидеть, что строки кода внутри конструктора базового компонента по какой-то причине не выполняются. Это действительно сводит меня с ума. Кто-нибудь может мне помочь, в чем может быть причина?
Вот мой компонент и базовый компонент, который доступен в библиотеке:
export class AdminReportsComponent extends ContextSensitiveBaseComponent {
constructor(private adminReportService: AdminReportService,
helpService: ContextSensitiveHelpService,
pageConfigurationService: PageConfigurationService
){
super(helpService, pageConfigurationService, '/Declaration/ConflictOfInterest/Index');
}
}
export class ContextSensitiveBaseComponent implements AfterViewInit, OnDestroy {
constructor(
protected helpService: ContextSensitiveHelpService,
protected pageConfigurationService: PageConfigurationService,
@Optional() @Inject(PAGEHELP_TOKEN) protected pageGuid = ''
) {
//Following lines of code are not getting exeucted and not able to set the debug points
this.pageConfigurationService.configure(new PageConfigurationOption({
helpGuid: this.pageGuid,
showPageHelp: true,
}));
}
}