-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: "Custom element doesn't exist" on builtin cards #104
Comments
Current HA (2022.10.5). Have you saved and reloaded the dashboard? |
Ah on mobile I get it too. Weird, but I might know what's the problem |
Ah on mobile I get it too. Weird, but I might know what's the problem. Edit: nope that isn't it |
I've poked at it a little bit the other day, but I don't know enough about how HA handles card loading to submit a fix 😅 At least it's relatively easy to reproduce I guess? |
It is easy to reproduce, but since this is an error HA throws it a pain to debug |
Weird thing is, for example the "entities" card is working.. |
I'm finding that it works if I have the builtin card I want loaded elsewhere on the dashboard. If I can manage to find the time I'll dig around and see if I can get a PR, since I did notice there's an exposed API that doesn't seem to be used by the library you're using, and I'd like to compare what's being done differently |
That would be nice. Good find btw |
I have the same problem. |
FYI latest version I grabbed from HACS didn't solve, but you probably knew that already. |
Thats why there are release notes in them :P |
@omayhemo Weird thing is, I had this error while developing 1.07.01 but its gone now |
ORLY? I can't be arsed. :) |
Since its WOM, I wonder if your local differs from the repo? |
Its the exact same version |
I haven’t tried other browsers just edge, I’ll test others when I can. Just trying to provide a little data no idea if it helps you or not. |
Exists in all browsers, just FYI. Furthermore, I get a a.style can't be on undefined error periodically as well. Refreshes don't help, I have to go in and literally perform an edit on the card and save it and then the whole view will work. There seems to be a rendering timing problem or something. I have to find a different solution at this point. |
Unfortunately I can't test all cards. And tbf it's a nice extra feature, but cards will always work best in a seperate instance. |
I built a dashboard specifically for mobile with this card. I still get the a.style undefined and element doesn't exist. I temporarily fixed by adding the two built-in cards at the bottom, but I have to scroll all the way down then refresh the page for the a.style error to go away. Then I have to wait until the picture entity cards refresh by themselves for the undefined element to fix itself. I'm using latest versions of the card and HA. |
Can you share your yaml? |
Sure |
I think the problem here is that you put cards in a horizontal stack in a room card. |
Hmm some cards of HA work different from the others. For example the picture entity. But you now get the error like the rest in this topic. I will take the horizontal-card into the test when I finally find the solution to this bug :) |
Why would you put the mushroom card in a room card? Thats just weird haha. But you have this error because you dont pass any entities to the room card @adoby |
Ah ok. I think this will help. It gives me a direction to search for at least. Thanks for trying multiple configurations |
In app, still same problem. If i change webviewer on android to chrome it works |
Crap @paulonutor seems like your solution doesn't seem to work for everyone. Can you check my note to self solution? |
My PR fixed something else. Nested entities didn't update on state change. This bug seems interesting and I'm going to take a look at it. |
Looks like some elements are loaded before room card's code and this is causing a problem on slow mobile connection dashboard is almost always loaded properly. |
Could anyone check if it was fixed by #248 ? |
@paulonutor I can't see that there are any updates available (current version 1.07.24). |
I need to make a release for that. But I have to review it first |
@elninosi I've made a new release, can you try now? |
No errors are shown on the front-end on companion app for Android. Some
cards are not shown. Will try to debug in the following days and report as
much info as I can get.
V V pet., 30. jun. 2023 ob 08:42 je oseba Marco Kreeft <
***@***.***> napisala:
… @elninosi <https://github.com/elninosi> I've made a new release, can you
try now?
—
Reply to this email directly, view it on GitHub
<#104 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACURVVFIEJ54RGCG32W2FV3XNZYNTANCNFSM6AAAAAARLGKLFY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Home Assistant didn't show me any update, so I clicked on the redownload button in the options menu which let me select the .25 version and install it. I have the same errors like before
I did not yet restart Home Assistant yet. |
It looks like the problem is in one of the libraries.
Uncaught TypeError: a is undefined
When I'm throttling internet connection everything is loaded properly. So
looks like dependencies are no loaded quickly enough.
V V pet., 30. jun. 2023 ob 17:41 je oseba ADoby ***@***.***>
napisala:
… Home Assistant didn't show me any update, so I clicked on the redownload
button in the options menu which let me select the .25 version and install
it.
I have the same errors like before
- Cannot read properties of undefined
- Custom element doesn't exist
Randomly one of them or rarely it will work.
Both in the mobile app and desktop browser (chrome)
Also cleared the browser cache for the website.
I did not yet restart Home Assistant yet.
Do I need to restart to check if it works?
—
Reply to this email directly, view it on GitHub
<#104 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACURVVGLGZV2NZY5VUXWQB3XN3XS5ANCNFSM6AAAAAARLGKLFY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I havent had this in a while now. Anyone in here who has had it since the october release? |
@elninosi Can you try with the new release? |
Use latest update, and still got this error. Before the update i modified it a little bit that if it errors it reloads. Not perfect and loop sensitive but it worked |
Can you share your yaml? |
It js but i can look in backup if i can find it. It updated and i forgot to pull the js before updating. |
I mean your yaml of the Configuration in HA |
But the error and yaml, Cannot read properties of undefined (reading 'style')
The style is still in there because i test it if that's the problem . And still this one time by time |
But why do you use room-card for this? You are using room-card like a container now, and not where it is designed for: Showing entities per room |
Doesn't take away the fact that it should work btw |
@cookie050 can you test it with v1.08.00 thanks to Scott ( don't know your github handle bro ) it should be fixed :) |
Seem to do the trick, have used it on multiple devices all work in one time now :) |
Finally! Haha thanks for testing |
@rummik can you test this? |
Works for me across several devices so far |
I also tested version 1.08.00 and can not reproduce the problems anymore. Thanks, now I can finally use my new dashboard. |
Describe the bug
There seems to be an issue with embedding builtin cards
To Reproduce
Steps to reproduce the behavior:
custom:room-card
Example YAML:
Expected behavior
Custom room card should be visible with builtin card
Screenshots
Desktop (please complete the following information):
Additional context
Looks like this may be related to #64
The text was updated successfully, but these errors were encountered: