JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums General Discussions Error error TS2322: in typescript version 4.0.5

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #101367
    byandex
    Member

    I am using Angular 11 and Typescript 4.05 and  “smart-webcomponents-angular”: “^9.0.5″, I am seeing following errors, Can you please help?
     
    Error: src/main/webapp/app/dashboard/ops/ops.component.html:24:39 – error TS2322: Type ‘{ enabled: boolean; mode: string; }’ is not assignable to type ‘GridEditing’.
    Types of property ‘mode’ are incompatible.
    Type ‘string’ is not assignable to type ‘”cell” | “row” | undefined’.
    <smart-grid [columns]=”columns” [editing]=”editing” [grouping]=”grouping” [dataSource]=”dataSource” id=”grid”></smart-grid>
    ~~~~~~~~~~~~~~~~~~~
    src/main/webapp/app/dashboard/ops/ops.component.ts:17:16
    templateUrl: ‘./ops.component.html’,
    ~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component OpsComponent.
    src/main/webapp/app/dashboard/ops/ops.component.html:24:59 – error TS2322: Type ‘{ enabled: boolean; renderMode: string; groupBar: { visible: boolean; }; }’ is not assignable to type ‘GridGrouping’.
    Types of property ‘renderMode’ are incompatible.
    Type ‘string’ is not assignable to type ‘”compact” | “basic” | “advanced” | undefined’.
    <smart-grid [columns]=”columns” [editing]=”editing” [grouping]=”grouping” [dataSource]=”dataSource” id=”grid”></smart-grid>
    ~~~~~~~~~~~~~~~~~~~~~
    src/main/webapp/app/dashboard/ops/ops.component.ts:17:16
    templateUrl: ‘./ops.component.html’,
    ~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component OpsComponent.

    #101368
    admin
    Keymaster

    Hi byandex,
    We will need a complete example set up that shows the reported behavior.
    Best regards,
    Peter Stoev
    Smart UI Team
    https://www.htmlelements.com/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.