primeng version : 9.0.0-rc.4
Angular version: 9.0.1
With previous version, we imported the service like this :
`import { ConfirmationService } from 'primeng/components/common/confirmationservice';
`
we changed it to :
`import { ConfirmationService } from 'primeng/api/confirmationservice';`
But this gives us the following error :
`Module not found: Error: Can't resolve 'primeng/api/confirmationservice'`
How do we use ConfirmationService with the new version ?
Note that this code works when using Angular 9 + primeng 8 + disabling Ivy
Try to import ConfirmationService like this:
import { ConfirmationService } from 'primeng/api';
Works for me with
Angular 9.0.1
PrimeNG 9.0.0-rc.4
Regards
Michael
Please use forum for questions and help requests.
Most helpful comment
Try to import ConfirmationService like this:
import { ConfirmationService } from 'primeng/api';Works for me with
Angular 9.0.1
PrimeNG 9.0.0-rc.4
Regards
Michael