ggmod / angular-2-data-table-demo

Demo application and examples for the Angular 2 data table (https://github.com/ggmod/angular-2-data-table)
MIT License
29 stars 98 forks source link

Importing DataTableModule error #2

Open RedLine555Pech opened 7 years ago

RedLine555Pech commented 7 years ago

I get this error "ERROR in DataTableModule is not an NgModule" while building my application, but datatables works well.

...

import { DataTableModule } from 'angular-2-data-table';

...

@NgModule({
  imports: [
...
DataTableModule,
...
  ],
...
})
export class AppModule { }

My Angular version is 2.4.5

NikiforovAll commented 7 years ago

Hi, same error for me, version is 2.4.5.

stackoverflow workaround

https://github.com/angular/angular-cli/issues/3426

ng modules - the "new" way

matthewhegarty commented 7 years ago

@NikiforovAll Did you find a fix or workaround for this? The error only appears on first run of ng serve - thereafter I can make changes to code, and it recompiles and runs.

lansanalsm commented 7 years ago

I was also having this error, fixed it by making a bit change in my code just like adding some comments !

ericalbers commented 7 years ago

angular-2-data-table does not work, same error. Solution: switch to another table system, do not use this one

matthewhegarty commented 7 years ago

You might have more luck with this fork, however I switched to angular-datatables