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

ERROR in DataTableModule is not an NgModule #5

Open
thackerronak opened this issue Apr 15, 2017 · 4 comments
Open

ERROR in DataTableModule is not an NgModule #5

thackerronak opened this issue Apr 15, 2017 · 4 comments

Comments

@thackerronak
Copy link

I got above error in Angular2 CLI any solution?

@devner007
Copy link

Facing the same issue :(

@demurius
Copy link

demurius commented May 23, 2017

Try adding @NgModule annotation to dist/index.d.ts file:

@NgModule({}) export declare class DataTableModule { }

You will also need to import { NgModule } from '@angular/core'; to make this work

Hope this helps.

@devner007
Copy link

@demalexz Thanks a ton, it works!!!

My question is that as I have made the change in my local system, when I deploy my app to production, do I need to make the change in the file on production as well??? Or will this change not be required in production? Please clarify.

@ericalbers
Copy link

do NOT use this table, it does not work out of the box, wait until ggmod decides to fix their buggy code.
Note: It works SOME times, but ng build --prod fails every single time on a fresh pull.
USE AT YOUR OWN RISK...this module is NOT SUPPORTED

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

4 participants