I have got issue of importing primeNG table to my angular project. so i have import the table module to app.module.ts, i have got error.
ERROR in ./node_modules/primeng/components/dropdown/dropdown.js Module not found: Error: Can't resolve '@angular/cdk/scrolling' in 'D:\test angular\primengs\node_modules\primeng\components\dropdown' i 「wdm」: Failed to compile.
ERROR in node_modules/primeng/components/table/table.d.ts(5,27): error TS2307: Cannot find module '@angular/core/src/metadata/lifecycle_hooks'.
I have found the solution for it. what i have done is Navigate to "/node_modules/primeng/components/table/table.d.ts". and line no 5 have this
import { OnDestroy } from '@angular/core/src/metadata/lifecycle_hooks';
i have changed to this.
import {OnDestroy } from '@angular/core';
after that i have got error is " ERROR in ./node_modules/primeng/components/dropdown/dropdown.js Module not found: Error: Can't resolve '@angular/cdk/scrolling'"
i simply install "npm install @angular/cdk" and import { ScrollingModule } from '@angular/cdk/scrolling'; to app.module.ts
After that everything running perfectly. anyway this is issue i had from angular 8.
solved my problem when upgrading to angular 8.
Ditto - thanks Raheem. No idea why this worked but it did.