Error after upgrading to Kendo R1 2022

0 Answers 419 Views
DropDownList
Johan
Top achievements
Rank 1
Johan asked on 26 Jan 2022, 12:32 PM | edited on 26 Jan 2022, 12:35 PM

I updated all Kendo packages to their latest versions and are now getting this error in the console.

Uncaught TypeError: Cannot set property ɵfac of class FlatDataBindingDirective extends FilteringBase {
    constructor(component) {
        super(component);
 ...<omitted>...
} which has only a getter

I have tried clearing the node_modules folder etc., but this issue still persist.

Any suggestions on how to fix this?

The relevant code

/**
 * A directive which encapsulates the retrieval of the child nodes when flat data is provided.
 */
let DropDownTreeFlatBindingDirective = class DropDownTreeFlatBindingDirective extends FlatDataBindingDirective {
    constructor(dropDownTree) {
        super(dropDownTree);
    }
};
// Error on this line
DropDownTreeFlatBindingDirective.ɵfac = function DropDownTreeFlatBindingDirective_Factory(t) { return new (t || DropDownTreeFlatBindingDirective)(ɵngcc0.ɵɵdirectiveInject(ɵngcc6.DataBoundComponent)); };
DropDownTreeFlatBindingDirective.ɵdir = /*@__PURE__*/ ɵngcc0.ɵɵdefineDirective({ type: DropDownTreeFlatBindingDirective, selectors: [["", "kendoDropDownTreeFlatBinding", ""]], inputs: { nodes: ["kendoDropDownTreeFlatBinding", "nodes"], idField: ["valueField", "idField"] }, features: [ɵngcc0.ɵɵInheritDefinitionFeature] });
__decorate([
    Input('kendoDropDownTreeFlatBinding'),
    __metadata("design:type", Array)
], DropDownTreeFlatBindingDirective.prototype, "nodes", void 0);
__decorate([
    Input('valueField'),
    __metadata("design:type", String)
], DropDownTreeFlatBindingDirective.prototype, "idField", void 0);
DropDownTreeFlatBindingDirective = __decorate([ __metadata("design:paramtypes", [DataBoundComponent])
], DropDownTreeFlatBindingDirective);

Svet
Telerik team
commented on 31 Jan 2022, 08:43 AM

Hi Johan,

Thank you for the provided code snippets. Still, at this point, we are unaware of such an error and it hasn't been reported so far. Thus could I ask you to demonstrate the actual code implementation causing the error? Thank you. That will allow me to add the specific code to a StackBlitz example and reproduce the error. Once I am able to reproduce the error I will get back to you with further details on it.

I am looking forward to your reply.

No answers yet. Maybe you can help?

Tags
DropDownList
Asked by
Johan
Top achievements
Rank 1
Share this question
or