ERROR in Unexpected value 'DataTableModule imported by the module 'AppModule

Viewed 1392

i have an error when i run ng build -prod in my angular 4 application it said

"ERROR in Unexpected value 'DataTableModule in Y:/example/node_modules/angular-2-data-table/dist/index.d.ts imported by the module 'AppModule. Please add a @NgModule annotation."

and this is index.d.ts file

import { DataTable } from './components/table.component';

import { DataTableColumn } from './components/column.component';

import { DataTableRow } from './components/row.component';

import { DataTablePagination } from './components/pagination.component';

import { DataTableHeader } from './components/header.component';

export * from './components/types';

export * from './tools/data-table-resource';

export { DataTable, DataTableColumn, DataTableRow, DataTablePagination, 
DataTableHeader };

export declare const DATA_TABLE_DIRECTIVES: (typeof DataTable | typeof 
DataTableColumn)[];

export declare class DataTableModule {

}

how can i fix this?

NB: i'm still new on angular and this is not my module, i use this package https://github.com/ggmod/angular-2-data-table

Thanks

0 Answers
Related