maykar / lovelace-swipe-navigation

↔️ Swipe through Lovelace views on mobile.
MIT License
205 stars 71 forks source link

shadowRoot error #48

Open TTLucian opened 3 years ago

TTLucian commented 3 years ago

Version | 2021.1.1 Installation Type | Home Assistant OS Lovelace Swipe Navigation version 1.3.5

Logger: frontend.js.latest.202012291 Source: components/system_log/init.py:193 First occurred: 11:53:51 PM (1 occurrences) Last logged: 11:53:51 PM

/hacsfiles/lovelace-swipe-navigation/swipe-navigation.js:17:95 Uncaught TypeError: Cannot read property 'shadowRoot' of null

The integration seems to be working except for a small animation problem: last frame before switching to the next view shows previous view

KTibow commented 3 years ago

What version are you using?

TTLucian commented 3 years ago

Lovelace Swipe Navigation version 1.3.5

domoson commented 3 years ago

Same issue for me since some days ago (I think). Using latest version of swipe navigation, running latest Home Assistant version

KTibow commented 3 years ago

It might be loading too early. The problem is that even though it can successfully query the home-assistant element and get the shadow root, the element home-assistant-main isn't inside of it.

kongo09 commented 3 years ago

I have seen this as well just now for the first time on 2021.3.4

2021-04-02 20:32:18 ERROR (MainThread) [frontend.js.latest.202103026] http://raspi:8123/hacsfiles/lovelace-swipe-navigation/swipe-navigation.js:17:95 Uncaught TypeError: Cannot read property 'shadowRoot' of null

It happend early in the log file close to startup and only happened once.

abigdeel commented 2 years ago

This has happened to me a few times as well, on 2021.10.6.

Doesn't affect operation though.

Mariusthvdb commented 2 years ago

same error as in Kiosk mode: https://github.com/maykar/kiosk-mode/issues/84 ?

maybe a shared resource..