ERROR在模块'AppModule导入的意外值'DataTableModule中

时间:2017-05-19 06:20:25

标签: angular ng-modules

我在angular 4应用程序中运行build -prod时出错 它说

  

“意外值中的错误”DataTableModule in   Y:/example/node_modules/angular-2-data-table/dist/index.d.ts已导入   通过模块'AppModule。请添加@NgModule注释。“

这是index.d.ts文件

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 {

}

我该如何解决这个问题?

注意:我仍然是角度新手,这不是我的模块,我使用这个包 https://github.com/ggmod/angular-2-data-table

由于

0 个答案:

没有答案