# Unhandled rejection TypeError: Failed to execute 'getComputedStyle' on 'Window'

**URL:** <https://discourse.aurelia.io/t/unhandled-rejection-typeerror-failed-to-execute-getcomputedstyle-on-window/3871>\
**Category:** Help Requests\
**Created:** [November 4, 2020, 4:25pm UTC](https://discourse.aurelia.io/t/unhandled-rejection-typeerror-failed-to-execute-getcomputedstyle-on-window/3871 "2020-11-04T16:25:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leggle](https://avatars.discourse-cdn.com/v4/letter/l/6a8cbe/32.png) [@Leggle](https://discourse.aurelia.io/u/Leggle)\
**Post date:** [November 4, 2020, 4:25pm UTC](https://discourse.aurelia.io/t/unhandled-rejection-typeerror-failed-to-execute-getcomputedstyle-on-window/3871/1 "2020-11-04T16:25:46Z")

</div>

I’m getting the error below on first time page loading. It doesn’t break anything yet. Does anyone have similar issue? I couldn’t find any solution. I’m using aurelia-pal@1.8.0, aurelia-pal-browser@1.8.1 and jquery@3.4.1. Any help appreciated.

Unhandled rejection TypeError: Failed to execute ‘getComputedStyle’ on ‘Window’: parameter 1 is not of type ‘Element’. at Object.getComputedStyle ([https://localhost/comm/jspm\_packages/npm/aurelia-pal-browser@1.8.1/aurelia-pal-browser.js:466:21](https://localhost/comm/jspm_packages/npm/aurelia-pal-browser@1.8.1/aurelia-pal-browser.js:466:21))

---

<div class="post-metadata">

**Author:** ![MaximBalaganskiy](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/maximbalaganskiy/32/831_2.png) [@MaximBalaganskiy](https://discourse.aurelia.io/u/MaximBalaganskiy)\
**Post date:** [November 4, 2020, 9:22pm UTC](https://discourse.aurelia.io/t/unhandled-rejection-typeerror-failed-to-execute-getcomputedstyle-on-window/3871/2 "2020-11-04T21:22:35Z")

</div>

Not an element was injected where element was expected?
