-
Notifications
You must be signed in to change notification settings - Fork 77
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
Uncaught SyntaxError in row 1:8 #4
Comments
you need to set the card type to module not js when you create it's reference. |
Thanks. I changed to module. Now I get two errormessages: First message: http://192.168.178.30:8123/local/custom_ui/dark-sky-weather-card.js?v=8:191:72 Uncaught TypeError: Cannot read property 'attributes' of undefined
of which column 72 is where "attributes.next_setting..." starts. Second message - this I do not know what it means: https://unpkg.com/@polymer/[email protected]/lib/utils/async.js?module:44:11 Uncaught TypeError: Cannot read property 'attributes' of undefined Hope you can help. Thanks a lot. |
They are the same error. its pointing to entity_sun not being defined. What is the value of sun.sun in the states debug panel. There should also be several attributes displayed in cluding next_setting, etc If these aren't there make sure you have the sun platform setup. (it is by default when you first start using HA but some folks might disable it) |
The sun.sun platform is running. See screenshot - also a lot of attributes:
Oh, but I see that my entity is named: "sun.sun" and not "sun" only as you wrote. Is this relevant? In my configuration.yaml it is setup as follows:
|
Can you post your ui_lovelace config? |
Sure, here it is:
|
Is this still an issue ? |
Unfortunately, yes it is. |
Your config above generally looks correct... If you use the Chrome developer tools and refresh the card, can you post the error messages you get in the console. This works best if you put the card by itself in its own view to cut down on the number of extraneous messages. Are you using the latest version of the card ? |
@villakarow I'm not sure this is the same thing, but I used wget to download the script off of the wrong url rather than "raw". Thus, I ended up with the html content of github rather than the necessary script. The error "on line 8" for me was the html5 tag. |
Hi,
thanks for your work. I have done as described (hopefully) but get this error massage.
http://hassio.local:8123/local/custom_ui/dark-sky-weather-card.js?v=8:1:8 Uncaught SyntaxError: Unexpected token {
The text was updated successfully, but these errors were encountered: