Skip to content
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

Card crashes #201

Open
cryptooth opened this issue May 12, 2023 · 3 comments
Open

Card crashes #201

cryptooth opened this issue May 12, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@cryptooth
Copy link

Hi there,

v2.4.1 installed.

Home Assistant 2023.5.2
Supervisor 2023.04.1
Operating System 10.1
Frontend 20230503.3 - latest

everything seems to be working normally. When I change Theme from my user profile and go back again, all the cards crashed.

This is the error it gives:

r.setConfig is not a function. (In 'r.setConfig(t)', 'r.setConfig' is undefined)

I also see the following error in the HA log.

Logger: frontend.js.latest.202305033
Source: components/system_log/init.py:257
First occurred: 11:25:54 AM (272 occurrences)
Last logged: 1:57:44 PM

https://XXXXXXX/hacsfiles/swiss-army-knife-card/swiss-army-knife-card.js:468:2513 Uncaught TypeError: Cannot read properties of undefined (reading 'style')
https://XXXXXXX/sak-examples/sake1:0:0 Uncaught
https://XXXXXXX/hacsfiles/swiss-army-knife-card/swiss-army-knife-card.js:696:76 Uncaught Error: card::get styles - System Templates reference NOT defined!
https://XXXXXXX/lovelace-minimalist/0:0:0 Uncaught
:0:0 Script error.

@cryptooth cryptooth added the bug Something isn't working label May 12, 2023
@github-actions
Copy link

Thank you for creating your first issue for the Swiss Army Knife custom card!

@AmoebeLabs
Copy link
Owner

I haven't seen crashes yet while changing the theme, but I know sometimes a refresh is required to get all the new colors in place.

In this case, however, I see that the card can't find/load its system templates. That is indeed fatal to render the card.

I have no idea what lovelace-minimalist is, and what it has to do with NOT able to load the system templates.

@cryptooth
Copy link
Author

cryptooth commented May 12, 2023

I just clear my HA resources. Cards still getting error.

r.setConfig is not a function. (In 'r.setConfig(t)', 'r.setConfig' is undefined)

Here is the HA log:

Logger: frontend.js.latest.202305033
Source: components/system_log/init.py:257
First occurred: 4:22:59 PM (26 occurrences)
Last logged: 4:27:30 PM

https://XXXXXXXXXX/hacsfiles/swiss-army-knife-card/swiss-army-knife-card.js?hacstag=214786112242:898:1611 Error: card::get styles - System Templates reference NOT defined!

BTW: my YAML configuration is "storage"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants