thomasloven / lovelace-layout-card

🔹 Get more control over the placement of lovelace cards.
MIT License
1.05k stars 125 forks source link

View types missing #183

Closed egobuster1 closed 2 years ago

egobuster1 commented 2 years ago

My Home Assistant version: 2022.2.0

Layout-card version (FROM BROWSER CONSOLE): 2.3.1

What I am doing: it appears as if under the view layout all I get now is masonry, sidebar, and panel 1 card. there's also no area to enter in the max-width code and columns.

Minimal steps to reproduce:

# The least ammount of code possible to reproduce my error

# End of code

Error messages from the browser console:


By putting an X in the boxes ([X]) below, I indicate that I:

egobuster1 commented 2 years ago

I went into Configuration ==>> Dashboard ==>> resources and found the JS file for lay out card and when i opened it I just clicked update and it came back

egobuster1 commented 2 years ago

well it seems after upgrading to 2022.2.1 the issue is back and my fix last time doesn't seem to be working anymore.

RudiKlein commented 2 years ago

Same issue here. Still in 2022.2.5

RudiKlein commented 2 years ago

Hi,

Just updated the OS to 7.4 and checked if anything changed on the layout card, and it did. The missing views are no longer missing. Everything seems to be working fine. However, the dashboard I used to test it appeared to be empty, with all cards gone. I'm not sure if I caused it myself or the switch from Masonry to Masonry (layout-card) was the culprit. It was late in the evening....

andbad commented 2 years ago

Same problem here with HA Core 2022.2.9. I found this error in log file: 2022-02-21 18:27:19 ERROR (MainThread) [frontend.js.latest.202202031] REMOVED/local/lovelace-custom/layout-card.js?v=2:7:1 Uncaught SyntaxError: Unexpected token '<'

By(t)e

thomasloven commented 2 years ago

https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins#uncaught-syntaxerror-unexpected-token-

andbad commented 2 years ago

I tried to download from RAW already, and get js file from release zip, but error remains. Is it possibile that HA caches it in some way? I also try to add "?v=2" but not works. The error in log, now, is: 2022-02-22 08:44:38 ERROR (MainThread) [frontend.js.latest.202202031] https://REMOVED/config/lovelace/resources:0:0 Uncaught In develop console, I can see that the JS file seems to bo correct. In console browser I can see this errors when I try to change view type:

layout-card.js?v=199:216 Uncaught (in promise) TypeError: Cannot set properties of null (setting 'defaultValue')
    at F.t.updated (layout-card.js?v=199:216:3437)
    at F._$AE (styles.ts:368:1)
    at F.performUpdate (styles.ts:368:1)
    at F.scheduleUpdate (styles.ts:368:1)
    at F._$EC (styles.ts:368:1)
t.updated @ layout-card.js?v=199:216
_$AE @ styles.ts:368
performUpdate @ styles.ts:368
scheduleUpdate @ styles.ts:368
_$EC @ styles.ts:368
await in _$EC (async)
t.firstUpdated @ card-mod.js:6
_$AE @ styles.ts:368
performUpdate @ styles.ts:368
scheduleUpdate @ styles.ts:368
_$EC @ styles.ts:368
await in _$EC (async)
requestUpdate @ styles.ts:368
o @ styles.ts:368
b @ styles.ts:368
w @ styles.ts:368
r @ 3c8d6e84.js:1
p @ styles.ts:368
T @ styles.ts:368
_$AI @ styles.ts:368
m @ styles.ts:368
T @ styles.ts:368
_$AI @ styles.ts:368
S @ styles.ts:368
update @ styles.ts:368
performUpdate @ styles.ts:368
scheduleUpdate @ styles.ts:368
_$EC @ styles.ts:368
await in _$EC (async)
requestUpdate @ styles.ts:368
o @ styles.ts:368
b @ styles.ts:368
w @ styles.ts:368
F @ ha-icon-picker.ts:46
p @ styles.ts:368
T @ styles.ts:368
_$AI @ styles.ts:368
S @ styles.ts:368
update @ styles.ts:368
performUpdate @ styles.ts:368
scheduleUpdate @ styles.ts:368
_$EC @ styles.ts:368
await in _$EC (async)
requestUpdate @ styles.ts:368
o @ styles.ts:368
b @ styles.ts:368
w @ styles.ts:368
F @ hui-dialog-edit-view.ts:42
p @ styles.ts:368
T @ styles.ts:368
_$AI @ styles.ts:368
m @ styles.ts:368
T @ styles.ts:368
_$AI @ styles.ts:368
S @ styles.ts:368
update @ styles.ts:368
performUpdate @ styles.ts:368
scheduleUpdate @ styles.ts:368
_$EC @ styles.ts:368
await in _$EC (async)
requestUpdate @ styles.ts:368
set @ styles.ts:368
value @ hui-dialog-edit-view.ts:42
handleEvent @ styles.ts:368
O @ typography.js:181
D @ typography.js:181
C @ typography.js:181
(anonymous) @ typography.js:181
_propertiesChanged @ typography.js:181
_flushProperties @ typography.js:181
_invalidateProperties @ typography.js:181
_setProperty @ typography.js:181
t.<computed> @ typography.js:181
_selectionChange @ be3db3b8.js:2
_applySelection @ be3db3b8.js:2
_applySelection @ be3db3b8.js:2
setItemSelected @ be3db3b8.js:2
select @ be3db3b8.js:2
_selectSelected @ be3db3b8.js:2
_updateSelected @ be3db3b8.js:2
(anonymous) @ be3db3b8.js:2
flush @ typography.js:181
(anonymous) @ typography.js:181
(anonymous) @ typography.js:181
characterData (async)
run @ typography.js:181
z @ typography.js:181
(anonymous) @ typography.js:181
N @ typography.js:181
_addEventListenerToNode @ typography.js:181
_addMethodEventListenerToNode @ typography.js:181
m @ typography.js:181
_stampTemplate @ typography.js:181
_stampTemplate @ typography.js:181
ready @ typography.js:181
ready @ typography.js:181
ready @ typography.js:181
ready @ typography.js:181
_enableProperties @ typography.js:181
_enableProperties @ typography.js:181
connectedCallback @ typography.js:181
connectedCallback @ typography.js:181
connectedCallback @ typography.js:181
connectedCallback @ typography.js:181
M @ styles.ts:368
S @ styles.ts:368
T @ styles.ts:368
_$AI @ styles.ts:368
S @ styles.ts:368
update @ styles.ts:368
performUpdate @ styles.ts:368
scheduleUpdate @ styles.ts:368
_$EC @ styles.ts:368
await in _$EC (async)
requestUpdate @ styles.ts:368
o @ styles.ts:368
b @ styles.ts:368
w @ styles.ts:368
F @ hui-theme-select-editor.ts:11
(anonymous) @ ha-svg-icon.ts:5
Promise.then (async)
o @ ha-svg-icon.ts:5
(anonymous) @ styles.ts:368
i @ typography.js:181
s @ ha-icon-button-arrow-next.ts:8
value @ hui-root.ts:500
handleEvent @ styles.ts:368
layout-card.js?v=199:216 Uncaught (in promise) TypeError: Cannot set properties of null (setting 'defaultValue')
    at F.t.updated (layout-card.js?v=199:216:3437)
    at F._$AE (styles.ts:368:1)
    at F.performUpdate (styles.ts:368:1)
    at F.scheduleUpdate (styles.ts:368:1)
    at F._$EC (styles.ts:368:1)
t.updated @ layout-card.js?v=199:216
_$AE @ styles.ts:368
performUpdate @ styles.ts:368
scheduleUpdate @ styles.ts:368
_$EC @ styles.ts:368
await in _$EC (async)
t.firstUpdated @ card-mod.js:6
_$AE @ styles.ts:368
performUpdate @ styles.ts:368
scheduleUpdate @ styles.ts:368
_$EC @ styles.ts:368
await in _$EC (async)
requestUpdate @ styles.ts:368
o @ styles.ts:368
b @ styles.ts:368
w @ styles.ts:368
F @ ha-menu-button.ts:12
p @ styles.ts:368
T @ styles.ts:368
_$AI @ styles.ts:368
S @ styles.ts:368
update @ styles.ts:368
performUpdate @ styles.ts:368
scheduleUpdate @ styles.ts:368
_$EC @ styles.ts:368
await in _$EC (async)
requestUpdate @ styles.ts:368
o @ styles.ts:368
b @ styles.ts:368
w @ styles.ts:368
r @ 3c8d6e84.js:1
p @ styles.ts:368
T @ styles.ts:368
_$AI @ styles.ts:368
m @ styles.ts:368
T @ styles.ts:368
_$AI @ styles.ts:368
S @ styles.ts:368
update @ styles.ts:368
performUpdate @ styles.ts:368
scheduleUpdate @ styles.ts:368
_$EC @ styles.ts:368
await in _$EC (async)
requestUpdate @ styles.ts:368
o @ styles.ts:368
b @ styles.ts:368
w @ styles.ts:368
F @ ha-icon-picker.ts:46
p @ styles.ts:368
T @ styles.ts:368
_$AI @ styles.ts:368
S @ styles.ts:368
update @ styles.ts:368
performUpdate @ styles.ts:368
scheduleUpdate @ styles.ts:368
_$EC @ styles.ts:368
await in _$EC (async)
requestUpdate @ styles.ts:368
o @ styles.ts:368
b @ styles.ts:368
w @ styles.ts:368
F @ hui-dialog-edit-view.ts:42
p @ styles.ts:368
T @ styles.ts:368
_$AI @ styles.ts:368
m @ styles.ts:368
T @ styles.ts:368
_$AI @ styles.ts:368
S @ styles.ts:368
update @ styles.ts:368
performUpdate @ styles.ts:368
scheduleUpdate @ styles.ts:368
_$EC @ styles.ts:368
await in _$EC (async)
requestUpdate @ styles.ts:368
set @ styles.ts:368
value @ hui-dialog-edit-view.ts:42
handleEvent @ styles.ts:368
O @ typography.js:181
D @ typography.js:181
C @ typography.js:181
(anonymous) @ typography.js:181
_propertiesChanged @ typography.js:181
_flushProperties @ typography.js:181
_invalidateProperties @ typography.js:181
_setProperty @ typography.js:181
t.<computed> @ typography.js:181
_selectionChange @ be3db3b8.js:2
_applySelection @ be3db3b8.js:2
_applySelection @ be3db3b8.js:2
setItemSelected @ be3db3b8.js:2
select @ be3db3b8.js:2
_selectSelected @ be3db3b8.js:2
_updateSelected @ be3db3b8.js:2
(anonymous) @ be3db3b8.js:2
flush @ typography.js:181
(anonymous) @ typography.js:181
(anonymous) @ typography.js:181
characterData (async)
run @ typography.js:181
z @ typography.js:181
(anonymous) @ typography.js:181
N @ typography.js:181
_addEventListenerToNode @ typography.js:181
_addMethodEventListenerToNode @ typography.js:181
m @ typography.js:181
_stampTemplate @ typography.js:181
_stampTemplate @ typography.js:181
ready @ typography.js:181
ready @ typography.js:181
ready @ typography.js:181
ready @ typography.js:181
_enableProperties @ typography.js:181
_enableProperties @ typography.js:181
connectedCallback @ typography.js:181
connectedCallback @ typography.js:181
connectedCallback @ typography.js:181
connectedCallback @ typography.js:181
M @ styles.ts:368
S @ styles.ts:368
T @ styles.ts:368
_$AI @ styles.ts:368
S @ styles.ts:368
update @ styles.ts:368
performUpdate @ styles.ts:368
scheduleUpdate @ styles.ts:368
_$EC @ styles.ts:368
await in _$EC (async)
requestUpdate @ styles.ts:368
o @ styles.ts:368
b @ styles.ts:368
w @ styles.ts:368
F @ hui-theme-select-editor.ts:11
(anonymous) @ ha-svg-icon.ts:5
Promise.then (async)
o @ ha-svg-icon.ts:5
(anonymous) @ styles.ts:368
i @ typography.js:181
s @ ha-icon-button-arrow-next.ts:8
value @ hui-root.ts:500
handleEvent @ styles.ts:368
layout-card.js?v=199:216 Uncaught (in promise) TypeError: Cannot set properties of null (setting 'defaultValue')
    at F.t.updated (layout-card.js?v=199:216:3437)
    at F._$AE (styles.ts:368:1)
    at F.performUpdate (styles.ts:368:1)
    at F.scheduleUpdate (styles.ts:368:1)
    at F._$EC (styles.ts:368:1)

By(t)e

thomasloven commented 2 years ago

That should be fixed now.