Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing DataTableModule error #2

Open
RedLine555Pech opened this issue Feb 2, 2017 · 5 comments
Open

Importing DataTableModule error #2

RedLine555Pech opened this issue Feb 2, 2017 · 5 comments

Comments

@RedLine555Pech
Copy link

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
Copy link

NikiforovAll commented Feb 14, 2017

Hi, same error for me, version is 2.4.5.

stackoverflow workaround
#angular/angular-cli#3426
ng modules - the "new" way

@matthewhegarty
Copy link

matthewhegarty commented Mar 8, 2017

@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
Copy link

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

@ericalbers
Copy link

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

@matthewhegarty
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants