brunano21 / angular-4-data-table

An Angular 5 data table, with pagination, sorting, expandable rows, row selection, etc. with basic accessibility support.
MIT License
11 stars 19 forks source link

import of DataTableModule throwing an error #65

Open bharukarupesh11 opened 2 years ago

bharukarupesh11 commented 2 years ago

Hi, I've installed angular-4-data-table package and imported DataTableModule in app.module.ts imports section.

Import Statement: import {DataTableModule} from 'angular-4-data-table';

When I run ng serve command I get the below error, Error: {project_path}\node_modules@angular\compiler-cli\ngcc\src\rendering\utils.js:23 return new imports_1.R3SymbolsImportRewriter(r3SymbolsFile.fileName);

TypeError: Cannot read property 'fileName' of null

If, I remove import statement of DataTableModule then project builds successfully..!!

Any fix please..??

brunano21 commented 2 years ago

Hi @bharukarupesh11,

what version of Angular are you using? Unfortunately, this project hasn't been upgraded lately and it might not work with latest versions of Angular.