angular-2-data-table-demo
angular-2-data-table-demo copied to clipboard
ERROR in DataTableModule is not an NgModule
I got above error in Angular2 CLI any solution?
Facing the same issue :(
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.
@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.
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