dnguyen800 / air-visual-card

A Lovelace card showing air quality data from airvisual.com. Requires the AirVisual component.
MIT License
100 stars 35 forks source link

Error "can’t define property “icons”: Object is not extensible" on .106.5 #19

Closed scstraus closed 4 years ago

scstraus commented 4 years ago

I’m getting the following on .106.5:

can’t define property “icons”: Object is not extensible

image

dnguyen800 commented 4 years ago

Are you using the latest version of the card and did you wipe the browser cache? Another person had the same problem but forgot to wipe the cache.

riqjuan commented 4 years ago

Also seeing this, although mine has slightly different wording image

Clearing browser cache/data has no effect -- also on 0.106.5

scstraus commented 4 years ago

Are you using the latest version of the card and did you wipe the browser cache? Another person had the same problem but forgot to wipe the cache.

I believe yes on both counts unless you have updated it in the last couple weeks. I hit upgrade all on HACS (Where I have it added) when I went to 105.5. Is there a way to test if it’s the latest version? I have since downgraded again to 105.5, but if there’s a fix I will try again.

dnguyen800 commented 4 years ago

I released a new version of the card that now shows the version info when you look at the browser console. If the version is not showing, then you're not running v0.0.11

To access the console on Google Chrome:

Right click anywhere on Home Assistant UI >> Inspect >> Console.

Make sure cache is cleared. There is a setting you can enable in Developer Tools to always disable cache when Inspect mode is on.

riqjuan commented 4 years ago

v0.0.11 has resolved my issue, card is now working correctly - thanks @dnguyen800

scstraus commented 4 years ago

Yep, my problem too. Sorry for the bother. Should have checked that I was running the latest stuff better.