carbon-design-system / carbon-tutorial-angular

An Angular app for the Carbon Design System tutorial
20 stars 899 forks source link

TableModel does not appear to be an NgModule class #1150

Open trieunhd opened 5 months ago

trieunhd commented 5 months ago

I use Angular 16.2.10 and "carbon-components-angular": "^5.20.3",

When AppModule import TableModel

Error: src/app/app.module.ts:51:3 - error NG6002: 'TableModel' does not appear to be an NgModule class.

51 TableModel,


  node_modules/carbon-components-angular/table/table-model.class.d.ts:44:22
    44 export declare class TableModel implements PaginationModel {
This likely means that the library (carbon-components-angular) which declares TableModel is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.

@cal-smith @mattrosno @jeffchew @kennylam @Ratheeshrajan