primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Not compatible with Angular 8

Open md-shahnawaz08 opened this issue 7 years ago • 5 comments

Error

node_modules/primeng/components/table/table.d.ts(5,27): error TS2307: Cannot find module '@angular/core/src/metadata/lifecycle_hooks'

Solution

In primeng/components/table/table.d.ts Replace import { OnDestroy } from '@angular/core/src/metadata/lifecycle_hooks'; With import { OnDestroy } from '@angular/core';

md-shahnawaz08 avatar May 29 '19 13:05 md-shahnawaz08

Please resolve this is a duplicate - https://github.com/primefaces/primeng/issues/7745

JacobSiegle avatar May 29 '19 13:05 JacobSiegle

Duplicate. Already fixed in master. #7627

jmesa-sistel avatar May 30 '19 06:05 jmesa-sistel

Error

node_modules/primeng/components/table/table.d.ts(5,27): error TS2307: Cannot find module '@angular/core/src/metadata/lifecycle_hooks'

Solution

In primeng/components/table/table.d.ts Replace import { OnDestroy } from '@angular/core/src/metadata/lifecycle_hooks'; With import { OnDestroy } from '@angular/core';

so i need simply inside of node_modules go to primeng/components/table/table.d.ts and change it. So whatshappend when i make the npm i. and when a push to mi repo node_modules is in gitignore

lotar94 avatar Jun 08 '20 21:06 lotar94

Use a newer version of primeng which already has it patched.

JacobSiegle avatar Jun 09 '20 00:06 JacobSiegle

@JacobSiegle thanks. Now work

lotar94 avatar Jun 09 '20 21:06 lotar94