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

ERROR in DataTableModule is not an NgModule #5

Open thackerronak opened 7 years ago

thackerronak commented 7 years ago

I got above error in Angular2 CLI any solution?

devner007 commented 7 years ago

Facing the same issue :(

demurius commented 7 years ago

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 commented 7 years ago

@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 commented 7 years ago

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