Uncaught error from Chrome WebView on Android

I have following installed on Raspi5:

Installationsmetod Home Assistant OS
Core 2026.1.1
Supervisor 2026.01.1
Operating System 16.3
Användargränssnitt 20260107.1

My log shows following … don’t understand the error message …
Sorry about some text in Swedish

Loggdetaljer (FEL)

Loggare: frontend.js.modern.202601071
Källa: components/system_log/__init__.py:331
Inträffade först: 15:44:10 (6 förekomster)
Senast loggade: 16:26:23

    Uncaught error from Chrome WebView 143.0.7499.192 on Android 16 TypeError: Cannot read properties of null (reading 'querySelector') ha_elements (/local/custom-lovelace/compact-custom-header/custom-header.js:1:13663) /local/custom-lovelace/compact-custom-header/custom-header.js:617:37079
    Uncaught error from Chrome WebView 143.0.7499.192 on Android 16 Error: Failed to execute 'define' on 'CustomElementRegistry': the name "battery-state-card" has already been used with this registry A.define (node_modules/@webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.ts:180:12) customElements.get (/maxwroc/battery-state-card/v3.2.1/src/index.ts:10:19) customElements.get (/maxwroc/battery-state-card/v3.2.1/src/index.ts:21:17)
    Uncaught error from Firefox 147.0 on Linux TypeError: can't access property "querySelector", e.root.querySelector(...) is null ha_elements (/local/custom-lovelace/compact-custom-header/custom-header.js:1:13635) /local/custom-lovelace/compact-custom-header/custom-header.js:617:37079
    Uncaught error from Firefox 147.0 on Linux Error: Failed to execute 'define' on 'CustomElementRegistry': the name "battery-state-card" has already been used with this registry 88431/</A.prototype.define (node_modules/@webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.ts:180:12) customElements.get (/maxwroc/battery-state-card/v3.2.1/src/index.ts:10:19) customElements.get (/maxwroc/battery-state-card/v3.2.1/src/index.ts:21:17)

Is your Android software up to date?
Chrome? Firefox?
Did you clear your browser cache.

1 Like

My Android & Chrome & Firefox are updated and cached is cleard.
I have tested it from 2 Android mobiles and get the same message.
Both mobiles uses android app Home Assisstant from Google Play.

Problem with lovelace custom header. What dashboard are you having problems with?

I have created my own Dashboard