bramkragten / custom-ui

Lovelace custom-ui
177 stars 69 forks source link

Custom element doesn't exist: weather-card. #19

Closed kayloehmann closed 5 years ago

kayloehmann commented 5 years ago

Hi there,

thanks for the great card!

I followed your documentation and get the following error with the newest version of home assistant (0.86.1):

Custom element doesn't exist: weather-card.

{ "type": "custom:weather-card", "entity": "weather.yourweatherentity", "icons": "/local/custom-lovelace/weather-card/icons/" }

Browser: Firefox 64.0.2 (64-Bit)

iantrich commented 5 years ago

You have it defined in your resources section?

kayloehmann commented 5 years ago

Yes. Other cards also do not work.

resources:

Log shows: http://10.107.0.193:8123/local/custom-lovelace/weather-card/weather-card.js:92:16 SyntaxError: expected dot, got '('

bramkragten commented 5 years ago

Firefox doesn't work, try Chrome

bramkragten commented 5 years ago

See https://github.com/bramkragten/custom-ui/issues/18

bramkragten commented 5 years ago

If you want to use the card in Firefox, without the editor use this version: https://github.com/bramkragten/custom-ui/blob/58c41ad177b002e149497629a26ea10ccfeebcd0/weather-card/weather-card.js

kayloehmann commented 5 years ago

Thanks. I will play around with it a bit.

inputsh commented 5 years ago

Just wanna pitch in to say that you should flip javascript.options.dynamicImport in about:config and the card will work in Firefox.