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

Datatable is not an NgModule... Anyone has fixed this issue...

Open AshwinDeva opened this issue 7 years ago • 7 comments

AshwinDeva avatar Jun 21 '17 12:06 AshwinDeva

Me too facing the same problem. Did you found the solution?

mehtasagar avatar Jun 21 '17 19:06 mehtasagar

No... Do anyone have work around to compile successfully till fixing it..?

AshwinDeva avatar Jun 22 '17 05:06 AshwinDeva

As a workaround, in index.d.ts file of angular-2-data-table, add the below lines ,

import { NgModule } from 'angular/core'; @NgModule({}) export declare class DataTableModule { }

AshwinDeva avatar Jul 06 '17 12:07 AshwinDeva

when adding those lines, throws errors about resolving symbols statically ERROR in Error encountered resolving symbol values statically. Could not resolve angular/core relative to /node_modules/angular-2-data-table/dist/index.d.ts., resolving symbol DataTableModule in /node_modules/angular-2-data-table/dist/index.d.ts, resolving symbol DataTableModule in /node_modules/angular-2-data-table/dist/index.d.ts This is still an open bug.

ng -v gives angular/cli: 1.2.7 node: 6.11.1 os: win32 x64 angular/animations: 4.3.3 angular/cdk: 2.0.0-beta.8 angular/common: 4.3.3 angular/compiler: 4.3.3 angular/core: 4.3.3 angular/flex-layout: 2.0.0-beta.8 angular/forms: 4.3.3 angular/http: 4.3.3 angular/material: 2.0.0-beta.8 angular/platform-browser: 4.3.3 angular/platform-browser-dynamic: 4.3.3 angular/router: 4.3.3 angular/cli: 1.2.7 angular/compiler-cli: 4.3.3 angular/language-service: 4.3.3

ericalbers avatar Aug 04 '17 23:08 ericalbers

Switching to another table solution, this one does not work.

ericalbers avatar Aug 06 '17 11:08 ericalbers

you don't have to "add" those lines, just add the "@NgModule({})". The export declare class DataTableModule { } is already here, just add the @NgModule part. Worked for me.

BayardSmart avatar Aug 07 '17 07:08 BayardSmart

i have a same problem, can anyone please help on this issue or suggest any other table solution like angular-2-data-table.

nitthi avatar Dec 20 '17 11:12 nitthi