class importing in implementing error on ng serve

39 Views Asked by At

X [ERROR] TS2610: 'sticky' is defined as an accessor in class 'CdkColumnDef', but is overridden here in 'NbColumnDefDirective' as an instance property. [plugin angular-compiler]

node_modules/@nebular/theme/components/cdk/table/cell.d.ts:38:4:
  38 │     sticky: boolean;
     ╵     ~~~~~~

X [ERROR] TS2610: 'sticky' is defined as an accessor in class 'CdkHeaderRowDef', but is overridden here in 'NbHeaderRowDefDirective' as an instance property. [plugin angular-compiler]

node_modules/@nebular/theme/components/cdk/table/row.d.ts:29:4:
  29 │     sticky: boolean;
     ╵     ~~~~~~

X [ERROR] TS2610: 'sticky' is defined as an accessor in class 'CdkFooterRowDef', but is overridden here in 'NbFooterRowDefDirective' as an instance property. [plugin angular-compiler]

node_modules/@nebular/theme/components/cdk/table/row.d.ts:39:4:
  39 │     sticky: boolean;
     ╵     ~~~~~~

when running serve on, it fails with above error

i tried upgrading typescript-plugin-rxjs from 4.0.4 to 5.0.3 but the error still persists. Tried upgrading angular/cdk and and angular/core to version 17.2.2, but still does not work. Any help will be very much appreciated.

0

There are 0 best solutions below