DBuit / sidebar-card

397 stars 38 forks source link

Sidebar sometimes not correctly displayed #112

Open eric1905 opened 4 months ago

eric1905 commented 4 months ago

Hello @DBuit

sometimes I have the problem on my desktop pc, that the sidebar is not displayed correctly. It looks like this:

Bildschirmfoto 2024-02-22 um 08 35 29

After I refresh the page everything looks like normal.

I checked the log and today I saw this error in the logfile:

2024-02-22 08:32:31.305 ERROR (MainThread) [frontend.js.latest.202402071] Uncaught error from Chrome 121.0.0.0 on Mac OS 10.15.7 TypeError: Cannot read properties of undefined (reading 'entity_id') keyFunction (src/components/data-table/ha-data-table.ts:362:56) keyFunction (src/virtualize.ts:116:41) r (src/directives/repeat.ts:56:28) ct (src/directives/repeat.ts:93:52) update (src/directive.ts:134:16) $AS (src/lit-html.ts:1085:23) S (src/lit-html.ts:1362:12) _$AI (src/async-directive.ts:366:18) setValue (src/virtualize.ts:139:13) dispatchEvent (src/Virtualizer.ts:808:23)

Is this related to this issue or maybe something different? Can you help me to resolve this issue?

Thanks in advance Eric

eric1905 commented 4 months ago

I now got it again. Maybe the old stacktrace was wrong:

2024-02-22 13:56:46.650 ERROR (MainThread) [frontend.js.latest.202402071] Uncaught error from Chrome 121.0.0.0 on Mac OS 10.15.7 TypeError: cardElement.setConfig is not a function /hacsfiles/sidebar-card/sidebar-card.js:18130:33

eric1905 commented 4 months ago

I also get something like this in the logs: TypeError: Cannot read properties of null (reading 'shadowRoot') getHeaderHeightPx (/hacsfiles/sidebar-card/sidebar-card.js:18658:23) createCSS (/hacsfiles/sidebar-card/sidebar-card.js:18436:26) updateStyling (/hacsfiles/sidebar-card/sidebar-card.js:18710:66) /hacsfiles/sidebar-card/sidebar-card.js:18749:9

Scags104 commented 4 months ago

also getting the same issue from time to time. cache clearing is the fix. but it does get annoying

almighty059 commented 4 weeks ago

Same issue..