# "Uncaught TypeError" on the "Universal Login" page

**URL:** <https://community.auth0.com/t/uncaught-typeerror-on-the-universal-login-page/107900>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [May 26, 2023, 3:02pm UTC](https://community.auth0.com/t/uncaught-typeerror-on-the-universal-login-page/107900 "2023-05-26T15:02:19Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![alti](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alti/32/47787_2.png) [@alti](https://community.auth0.com/u/alti)\
**Post date:** [May 26, 2023, 3:02pm UTC](https://community.auth0.com/t/uncaught-typeerror-on-the-universal-login-page/107900/1 "2023-05-26T15:02:19Z")

</div>

Hi,  
after some changes, we started to get “Uncaught TypeError: Cannot read properties of null (reading ‘value’)” on the “Universal Login” page.

 ![login-console-error](https://global.discourse-cdn.com/auth0/original/3X/d/1/d1a0043a776a7150ad82b0152cc6dbc4d31212d6.png)

And it doesn’t block the UI.

The link in the error leads to the block of code:

![login-console-error-in-code](https://global.discourse-cdn.com/auth0/original/3X/9/b/9b4dee750fad02161d9575d00a0186d9da54cbab.png)

I found an additional block of code that leads to the error compared to one of our other tenants that has no this error on the login page:

 ![login-console-error-in-code-compared](https://global.discourse-cdn.com/auth0/original/3X/d/b/dba419f0ee34657616c10f0f30c904e00969ab7e.png)

Does anyone have similar behavior?  
Maybe our tenant config is wrong on some points?

---

<div class="post-metadata">

**Author:** ![keshav1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/keshav1/32/47608_2.png) [@keshav1](https://community.auth0.com/u/keshav1)\
**Post date:** [May 30, 2023, 4:08am UTC](https://community.auth0.com/t/uncaught-typeerror-on-the-universal-login-page/107900/2 "2023-05-30T04:08:58Z")

</div>

we are facing same issue

---

<div class="post-metadata">

**Author:** ![Pallini](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@Pallini](https://community.auth0.com/u/Pallini)\
**Post date:** [May 30, 2023, 8:27am UTC](https://community.auth0.com/t/uncaught-typeerror-on-the-universal-login-page/107900/3 "2023-05-30T08:27:13Z")

</div>

Same issue here.  
Happens also with the latest version 2.1.0

---

<div class="post-metadata">

**Author:** ![Khnia](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@Khnia](https://community.auth0.com/u/Khnia)\
**Post date:** [May 30, 2023, 9:00am UTC](https://community.auth0.com/t/uncaught-typeerror-on-the-universal-login-page/107900/4 "2023-05-30T09:00:34Z")

</div>

We are facing the same issue as well!

---

<div class="post-metadata">

**Author:** ![stefan.kip](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stefan.kip/32/47272_2.png) [@stefan.kip](https://community.auth0.com/u/stefan.kip)\
**Post date:** [May 30, 2023, 1:43pm UTC](https://community.auth0.com/t/uncaught-typeerror-on-the-universal-login-page/107900/5 "2023-05-30T13:43:27Z")

</div>

Ugh, we started running into this issue as well and it’s making our cypress E2E tests fail… Please fix this!

---

<div class="post-metadata">

**Author:** ![rghrist](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@rghrist](https://community.auth0.com/u/rghrist)\
**Post date:** [May 30, 2023, 3:50pm UTC](https://community.auth0.com/t/uncaught-typeerror-on-the-universal-login-page/107900/6 "2023-05-30T15:50:03Z")

</div>

We are also facing this issue with our cypress tests ☹

---

<div class="post-metadata">

**Author:** ![yaroslav.makovskiy](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/yaroslav.makovskiy/32/47624_2.png) [@yaroslav.makovskiy](https://community.auth0.com/u/yaroslav.makovskiy)\
**Post date:** [May 30, 2023, 5:21pm UTC](https://community.auth0.com/t/uncaught-typeerror-on-the-universal-login-page/107900/7 "2023-05-30T17:21:53Z")

</div>

We are having the same error on our Cypress tests

---

<div class="post-metadata">

**Author:** ![illepic](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/illepic/32/47627_2.png) [@illepic](https://community.auth0.com/u/illepic)\
**Post date:** [May 30, 2023, 7:02pm UTC](https://community.auth0.com/t/uncaught-typeerror-on-the-universal-login-page/107900/8 "2023-05-30T19:02:56Z")

</div>

It’s a hack, but if you need cypress to pass while dealing with this, catch and muffle the error within your cypress login action (if that is your approach):

```ts
    cy.origin('https://auth.your-auth0-domain.com', () => {
      cy.on('uncaught:exception', (e) => {
        if (
          e.message.includes("Cannot read properties of null (reading 'value')")
        ) {
          // we expected this error, so let's ignore it and let the test continue
          return false;
        }
      });
    });

```

---

<div class="post-metadata">

**Author:** ![keshav1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/keshav1/32/47608_2.png) [@keshav1](https://community.auth0.com/u/keshav1)\
**Post date:** [May 30, 2023, 10:38pm UTC](https://community.auth0.com/t/uncaught-typeerror-on-the-universal-login-page/107900/9 "2023-05-30T22:38:55Z")

</div>

> [@illepic](#):
>
> `"Cannot read properties of null (reading 'value')"`

We have tried this already. Doesn’t seem to work when running in CI

---

<div class="post-metadata">

**Author:** ![tachang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tachang/32/47623_2.png) [@tachang](https://community.auth0.com/u/tachang)\
**Post date:** [May 31, 2023, 10:46am UTC](https://community.auth0.com/t/uncaught-typeerror-on-the-universal-login-page/107900/10 "2023-05-31T10:46:20Z")

</div>

Having the same issue.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 31, 2023, 11:42am UTC](https://community.auth0.com/t/uncaught-typeerror-on-the-universal-login-page/107900/12 "2023-05-31T11:42:34Z")

</div>

Hey there everyone!

Thanks for reporting that! I just reached out to one of our engineering team to troubleshoot that. As soon as I have the answers I’ll make sure to relay them here. Thank you!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 31, 2023, 4:05pm UTC](https://community.auth0.com/t/uncaught-typeerror-on-the-universal-login-page/107900/13 "2023-05-31T16:05:25Z")

</div>

Can you confirm what SDK are you using?

---

<div class="post-metadata">

**Author:** ![yaroslav.makovskiy](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/yaroslav.makovskiy/32/47624_2.png) [@yaroslav.makovskiy](https://community.auth0.com/u/yaroslav.makovskiy)\
**Post date:** [May 31, 2023, 4:20pm UTC](https://community.auth0.com/t/uncaught-typeerror-on-the-universal-login-page/107900/14 "2023-05-31T16:20:30Z")

</div>

Cypress version 12.9.0

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 31, 2023, 4:31pm UTC](https://community.auth0.com/t/uncaught-typeerror-on-the-universal-login-page/107900/16 "2023-05-31T16:31:43Z")

</div>

Okay the team is aware of the problem and they are already working on a fix. Will let you know once I have updates to share!

---

<div class="post-metadata">

**Author:** ![alti](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alti/32/47787_2.png) [@alti](https://community.auth0.com/u/alti)\
**Post date:** [June 1, 2023, 5:37am UTC](https://community.auth0.com/t/uncaught-typeerror-on-the-universal-login-page/107900/17 "2023-06-01T05:37:41Z")

</div>

In our case it is @auth0/auth0-spa-js: 1.22.6

---

<div class="post-metadata">

**Author:** ![alti](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alti/32/47787_2.png) [@alti](https://community.auth0.com/u/alti)\
**Post date:** [June 2, 2023, 10:20am UTC](https://community.auth0.com/t/uncaught-typeerror-on-the-universal-login-page/107900/18 "2023-06-02T10:20:24Z")

</div>

The error also appears for the last version 2.0.6 of SDK @auth0/auth0-spa-js.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [June 2, 2023, 1:23pm UTC](https://community.auth0.com/t/uncaught-typeerror-on-the-universal-login-page/107900/19 "2023-06-02T13:23:14Z")

</div>

It’s still not resolved but one of our engineering teams is working on that. Thank you for your patience!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [June 5, 2023, 7:24am UTC](https://community.auth0.com/t/uncaught-typeerror-on-the-universal-login-page/107900/20 "2023-06-05T07:24:31Z")

</div>

Hey there everyone!

A fix has been merged and should be deployed soon. This seems to only affect automated tests and doesn’t affect authentication itself.

---

<div class="post-metadata">

**Author:** ![Khnia](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@Khnia](https://community.auth0.com/u/Khnia)\
**Post date:** [June 5, 2023, 4:29pm UTC](https://community.auth0.com/t/uncaught-typeerror-on-the-universal-login-page/107900/21 "2023-06-05T16:29:04Z")

</div>

@konrad.sopala Should we do something in our side to get rid of this error (e.g. maybe upgrading the auth0 package to a specific version? if that’s the case please let us know what version)?

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [June 6, 2023, 5:59am UTC](https://community.auth0.com/t/uncaught-typeerror-on-the-universal-login-page/107900/22 "2023-06-06T05:59:32Z")

</div>

Sure! For now no actions needed.

[Next page](https://community.auth0.com/t/uncaught-typeerror-on-the-universal-login-page/107900.md?page=2)
