I have just migrated the Angular to 11, but can't afford to do the same to the Prime at the moment since it would be too much work to adjust the look and feel changes. So that's still on 8. Everything appears to work fine except the modal dialogs that have embedded components. As soon as the DialogService.open() is triggered it throws:
Code: Select all
Error: No component factory found for DynamicDialogComponent. Did you add it to @NgModule.entryComponents?
If I add this component (primeng/components/dynamicdialog/dynamicdialog) to the module in Declarations and entryComponents, it will get a little further but then crashes trying to pull values (that don't exist) from the DynamicDialogRef:
Code: Select all
ERROR TypeError: Cannot read property 'viewContainerRef' of undefined
at DynamicDialogComponent.push.2bbZ.DynamicDialogComponent.loadChildComponent (dynamicdialog.js:41)
at DynamicDialogComponent.push.2bbZ.DynamicDialogComponent.ngAfterViewInit (dynamicdialog.js:30)
Thanks!