angular-2-data-table-demo icon indicating copy to clipboard operation
angular-2-data-table-demo copied to clipboard

ERROR in DataTableModule is not an NgModule

Open thackerronak opened this issue 7 years ago • 4 comments

I got above error in Angular2 CLI any solution?

thackerronak avatar Apr 15 '17 14:04 thackerronak

Facing the same issue :(

devner007 avatar May 19 '17 05:05 devner007

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.

demurius avatar May 23 '17 18:05 demurius

@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.

devner007 avatar May 24 '17 09:05 devner007

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

ericalbers avatar Aug 06 '17 12:08 ericalbers