ERROR TypeError: this.rootEl?.setAttribute is not a function after migration to v19 #17419
Open
2 of 4 tasks
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
user-list.component.html:79 ERROR TypeError: this.rootEl?.setAttribute is not a function
at Tooltip.ngAfterViewInit (primeng-basecomponent.mjs:58:26)
at Tooltip.ngAfterViewInit (primeng-tooltip.mjs:267:15)
at callHookInternal (core.mjs:4277:14)
at callHook (core.mjs:4304:13)
at callHooks (core.mjs:4258:17)
at executeInitAndCheckHooks (core.mjs:4208:9)
at refreshView (core.mjs:14964:21)
at detectChangesInView (core.mjs:15105:9)
at detectChangesInViewIfAttached (core.mjs:15065:5)
at detectChangesInEmbeddedViews (core.mjs:15024:13)
This is line 79:
<app-warehouse ngDefaultControl [ngModel]="(user.warehouse$ | async) || undefined" />
and ngModel is defined like this
ngModel = model<Warehouse>();
Pull Request Link
No response
Reason for not contributing a PR
Other Reason
No response
Reproducer
https://stackblitz.com/edit/github-ezuftcgh-xq53ixgg?file=src%2Fapp%2Fwarehouse.component.html
Environment
Chrome browser
Angular version
19.1.0
PrimeNG version
v19
Node version
22.11.0
Browser(s)
Chrome
Steps to reproduce the behavior
Just go to a page displaying the component
Expected behavior
This error should not be thrown.
This is the failing code:
The text was updated successfully, but these errors were encountered: