-
Notifications
You must be signed in to change notification settings - Fork 156
Labels
🐛 bugAny issue that describes a bugAny issue that describes a bug📉 regression🔥 severity: high✨ themes✅ status: resolvedApplies to issues that have pending PRs resolving them, or PRs that have already merged.Applies to issues that have pending PRs resolving them, or PRs that have already merged.version: 18.0.xversion: 18.1.x
Description
Description
With the current version of the components, there's an error when trying to run a pre-render or ssr build.
ERROR TypeError: globalThis.getComputedStyle is not a function
at i.init (file:///home/runner/work/bellum-gens/bellum-gens/.angular/prerender-root/424d766a-8fe7-4aee-8cc8-349e86681f8e/chunk-CEFPNUAV.mjs:13:49080)
at new i (file:///home/runner/work/bellum-gens/bellum-gens/.angular/prerender-root/424d766a-8fe7-4aee-8cc8-349e86681f8e/chunk-CEFPNUAV.mjs:13:49049)
at i.ɵfac [as factory] (file:///home/runner/work/bellum-gens/bellum-gens/.angular/prerender-root/424d766a-8fe7-4aee-8cc8-349e86681f8e/chunk-CEFPNUAV.mjs:13:49216)
at po.hydrate (file:///home/runner/work/bellum-gens/bellum-gens/.angular/prerender-root/424d766a-8fe7-4aee-8cc8-349e86681f8e/chunk-7QFJOWNH.mjs:7:11676)
at po.get (file:///home/runner/work/bellum-gens/bellum-gens/.angular/prerender-root/424d766a-8fe7-4aee-8cc8-349e86681f8e/chunk-7QFJOWNH.mjs:7:10785)
at po.get (file:///home/runner/work/bellum-gens/bellum-gens/.angular/prerender-root/424d766a-8fe7-4aee-8cc8-349e86681f8e/chunk-7QFJOWNH.mjs:7:10870)
at cu.get (file:///home/runner/work/bellum-gens/bellum-gens/.angular/prerender-root/424d766a-8fe7-4aee-8cc8-349e86681f8e/chunk-7QFJOWNH.mjs:7:21395)
at Vg (file:///home/runner/work/bellum-gens/bellum-gens/.angular/prerender-root/424d766a-8fe7-4aee-8cc8-349e86681f8e/chunk-7QFJOWNH.mjs:7:23035)
at Ug (file:///home/runner/work/bellum-gens/bellum-gens/.angular/prerender-root/424d766a-8fe7-4aee-8cc8-349e86681f8e/chunk-7QFJOWNH.mjs:7:23275)
at U (file:///home/runner/work/bellum-gens/bellum-gens/.angular/prerender-root/424d766a-8fe7-4aee-8cc8-349e86681f8e/chunk-7QFJOWNH.mjs:7:47552)
An unhandled exception occurred: globalThis.getComputedStyle is not a function- igniteui-angular version: 18+
- browser: server
Steps to reproduce
The issue, I believe, comes from the ThemeService, which calls getComputetStyle on the globalThis on init.
Result
Pre-rendering/SSR is unsuccessful.
Expected result
Pre-rendering/SSR should succeed.
Attachments
https://github.com/BellumGens/bellum-gens/actions/runs/10234144439/job/28313244985?pr=364
Metadata
Metadata
Assignees
Labels
🐛 bugAny issue that describes a bugAny issue that describes a bug📉 regression🔥 severity: high✨ themes✅ status: resolvedApplies to issues that have pending PRs resolving them, or PRs that have already merged.Applies to issues that have pending PRs resolving them, or PRs that have already merged.version: 18.0.xversion: 18.1.x