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

import of DataTableModule throwing an error

Open bharukarupesh11 opened this issue 4 years ago • 0 comments

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

bharukarupesh11 avatar Dec 22 '21 11:12 bharukarupesh11