kalkih / simple-weather-card

Minimalistic weather card for Home Assistant
MIT License
285 stars 33 forks source link

Custom element doesn't exist: simple-weather-card in Opera #19

Closed Yllelder closed 5 years ago

Yllelder commented 5 years ago

In Chrome it works correctly, but in Opera the card is not shown.

error

I have installed the plug-in from HACS and is updated to the latest version.

kalkih commented 5 years ago

Okay, just downloaded Opera to try and seems to work fine here, what version of Opera are you running? and Mobile/Desktop? Aldo, please try clearing cache.

Yllelder commented 5 years ago

Well, I'm using Opera for desktop in Windows 10 64 bits, version 62.0.3331.116.

I just checked that with Firefox 68.0.2 (64-bit) I get the same error.

I tried two different computers, one of them didn't have Opera and I did a new installation, and I get the same error.

kalkih commented 5 years ago

Hmmm...strange. Could you try reinstalling the card though HACS, if that doesn't help, would you mind opening developer tools in Opera where you have the issue and look for potential errors in the log?

Yllelder commented 5 years ago

Opera shows this in the console:

Failed to load resource: the server responded with a status of 404 (Not Found)

Uncaught (in promise) https://xxxxxx.duckdns.org:8123/community_plugin/simple-weather-card/simple-weather-card.js

That doesn't find the file simple-weather-card.js

kalkih commented 5 years ago

Okay, then it's not an issue with the card. You could try navigating to https://xxxxxx.duckdns.org:8123/community_plugin/simple-weather-card/simple-weather-card.js manually tosee if the file is there, if not, you should double check HACS and reinstall the card.

chris-alexander commented 5 years ago

I have the same issue and have been using Chrome. Looks like the js file was renamed to simple-weather-card-bundle.js (previously named simple-weather-card.js). Changing the url in my lovelace config to /community_plugin/simple-weather-card/simple-weather-card-bundle.js fixed it for me.

kalkih commented 5 years ago

Ah, true, the bundle was indeed renamed in release v.0.4.0 but that was also the first version with HACS support so if you've installed it through HACS you shouldn't be affected by it, unless HACS has changed how files are saved/named in later versions.