igniteui-angular
igniteui-angular copied to clipboard
igx-tabs component breaks SSR
Description
Describe the issue.
- igniteui-angular version: 17.1.1
- browser: Google Chrome Version 122.0.6261.69 (Offizieller Build) (arm64)
Steps to reproduce
-
Place on any page the igx-tabs component. Minimal sample:
<igx-tabs> <igx-tab-item [title]="'TEST'"> test </igx-tab-item> </igx-tabs>
-
Serve the Angular application with angular universal and reload the page on the route where the tab-component is placed
Result
Errors within the ssr-process:
** Angular Universal Live Development Server is listening on http://localhost:4200, open your browser on http://localhost:4200 **
Angular is running in development mode.
Angular is running in development mode.
Angular is running in development mode.
ReferenceError: window is not defined
at getResizeObserver (./node_modules/@infragistics/igniteui-angular/fesm2022/infragistics-igniteui-angular.mjs:197:40)
at apply (./node_modules/@infragistics/igniteui-angular/fesm2022/infragistics-igniteui-angular.mjs:85738:41)
at invoke (./node_modules/zone.js/fesm2015/zone-node.js:368:26)
at run (./node_modules/zone.js/fesm2015/zone-node.js:129:43)
at runOutsideAngular (./node_modules/@angular/core/fesm2022/core.mjs:14674:28)
at ngAfterViewInit (./node_modules/@infragistics/igniteui-angular/fesm2022/infragistics-igniteui-angular.mjs:85737:21)
at callHookInternal (./node_modules/@angular/core/fesm2022/core.mjs:3599:14)
at callHook (./node_modules/@angular/core/fesm2022/core.mjs:3626:13)
at callHooks (./node_modules/@angular/core/fesm2022/core.mjs:3581:17)
at executeInitAndCheckHooks (./node_modules/@angular/core/fesm2022/core.mjs:3531:9)
Expected result
No errors.
There has been no recent activity and this issue has been marked inactive.
There has been no recent activity and this issue has been marked inactive.
There has been no recent activity and this issue has been marked inactive.