maykar/lovelace-swipe-navigation

shadowRoot error

TTLucian opened this issue · 7 comments

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

What version are you using?

Lovelace Swipe Navigation version 1.3.5

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

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.

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.

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

Doesn't affect operation though.

same error as in Kiosk mode: maykar/kiosk-mode#84 ?

maybe a shared resource..