I am trying to instantiate PrimeNG objects to control some actions through typescript but the error is occurring:
ERROR in ./src/app/modules/example/example.component.ts
Module not found: Error: Can't resolve 'primeng/primeng' in '/home/felipe/oruserv/angular/hybrid-ui/src/app/modules/example'
PrimeNG Version:
"primeflex": "^ 1.0.0",
"primeicons": "^ 2.0.0",
"primeng": "^ 9.0.0-rc.1"
Thanks
Angular 8 - problem to instantiate any primeng object by @ViewChild
Hi,
I had the same issue. You need to change your import and make it more specific like this:
instead of this:
I guess that changed since primeng 9.0.0
I had the same issue. You need to change your import and make it more specific like this:
Code: Select all
import { DataViewModule } from 'primeng/dataview';
Code: Select all
import { DataViewModule } from 'primeng/primeng';
Changing imports from:
to :
Worked for me.
Code: Select all
import { DataViewModule } from 'primeng/primeng';
Code: Select all
import { DataViewModule } from 'primeng';
-
- Information
-
Who is online
Users browsing this forum: No registered users and 12 guests