В моем приложении angular я использую пакет (ng-pick-datetime-fork) для средства выбора даты / времени, это прекрасно работало в angular 8, но, поскольку я обновился до angular 9, я получаю это ошибка:
Can't resolve all parameters for SlideControlComponent: ([object Object], ?).
Есть ли у кого-то решение этой проблемы?
Похоже, что-то идет не так, если это код мира:
if (!this.created) {
this.created = true;
console.log('this.dialog');
this.compiler.compileModuleAndAllComponentsAsync(dynamic_module_1.DynamicModule)
.then(function (factory) {
var compFactory = factory.componentFactories.find(function (x) {
return x.componentType === dialog_component_1.DialogComponent;
});
var injector = core_1.ReflectiveInjector.fromResolvedProviders([], _this.vcRef.parentInjector);
var cmpRef = _this.vcRef.createComponent(compFactory, 0, injector, []);
console.log('Factory');
cmpRef.instance.setDialog(_this, _this.el, _this.dateTimePicker, _this.locale, _this.viewFormat, _this.returnObject, _this.positionOffset, _this.mode, _this.hourTime, _this.theme, _this.pickerType, _this.minDate, _this.maxDate);
_this.dialog = cmpRef.instance;
});
}
Спасибо за помощь!