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
Dev console error about "Failed to execute 'define' on 'CustomElementRegistry" #486
Comments
You have 2 button-card loaded in your resources. |
I have the same issue in Chrome, and I checked my resource file and I for sure only have it declared once lovelace:
mode: yaml
resources:
- url: /hacsfiles/ozw-network-visualization-card/ozw-network-visualization-card.js
type: module
- url: /hacsfiles/light-popup-card/light-popup-card.js
type: module
- url: /hacsfiles/battery-state-card/battery-state-card.js
type: module
# - url: /hacsfiles/hass-custom-light-popup-card/light-popup-card.js
# type: module
- url: /hacsfiles/thermostat-popup-card/thermostat-popup-card.js
type: module
- url: /hacsfiles/decluttering-card/decluttering-card.js
type: module
- url: /hacsfiles/Homekit-panel-card/homekit-panel-card.js
type: module
- url: /hacsfiles/lights-panel-card/lights-panel-card.js
type: module
- url: /hacsfiles/slider-button-card/slider-button-card.js
type: module
# - url: /hacsfiles/Multiline-Entity-Card/multiline-entity-card.js
# type: module
- url: /hacsfiles/lovelace-card-mod/card-mod.js
type: module
- url: /hacsfiles/mini-climate-card/mini-climate-card-bundle.js
type: module
- url: /hacsfiles/lovelace-gui-sandbox/gui-sandbox.js
type: module
- url: /hacsfiles/lovelace-slider-entity-row/slider-entity-row.js
type: module
- url: /hacsfiles/gauge-card/gauge-card.js
type: module
# - url: /hacsfiles/synthwave-hass-extras/synthwave-hass-extras.js
# type: module
- url: /hacsfiles/flex-horseshoe-card/flex-horseshoe-card.js
type: module
- url: /hacsfiles/unused-card/unused-card.js
type: module
- url: /hacsfiles/config-template-card/config-template-card.js
type: module
- url: /hacsfiles/fan-control-entity-row/fan-control-entity-row.js
type: module
- url: /hacsfiles/lovelace-popup-card/popup-card.js
type: module
- url: /hacsfiles/dual-gauge-card/dual-gauge-card.js
type: module
- url: /hacsfiles/mini-graph-card/mini-graph-card-bundle.js
type: module
- url: /hacsfiles/entity-attributes-card/entity-attributes-card.js
type: module
- url: /hacsfiles/bignumber-card/bignumber-card.js
type: module
- url: /hacsfiles/roku-card/roku-card.js
type: module
- url: /hacsfiles/secondaryinfo-entity-row/secondaryinfo-entity-row.js
type: module
- url: /hacsfiles/upcoming-media-card/upcoming-media-card.js
type: module
- url: /hacsfiles/username-element/username-element.js
type: module
- url: /hacsfiles/ext-weblink/ext-weblink.js
type: module
- url: /hacsfiles/state-element/state-element.js
type: module
- url: /hacsfiles/vertical-stack-in-card/vertical-stack-in-card.js
type: module
- url: /hacsfiles/circle-sensor-card/circle-sensor-card.js
type: module
- url: /hacsfiles/group-card/group-card.js
type: module
- url: /hacsfiles/text-divider-row/text-divider-row.js
type: module
- url: /hacsfiles/mini-media-player/mini-media-player-bundle.js
type: module
- url: /hacsfiles/button-card/button-card.js
type: module
- url: /hacsfiles/list-card/list-card.js
type: module
- url: /hacsfiles/lovelace-auto-entities/auto-entities.js
type: module
- url: /hacsfiles/bar-card/bar-card.js
type: module
- url: /hacsfiles/simple-weather-card/simple-weather-card-bundle.js
type: module
- url: /hacsfiles/lovelace-card-tools/card-tools.js
type: module
- url: /hacsfiles/banner-card/banner-card.js
type: module
- url: /hacsfiles/lovelace-fold-entity-row/fold-entity-row.js
type: module
- url: /hacsfiles/lovelace-layout-card/layout-card.js
type: module
- url: /hacsfiles/lovelace-state-switch/state-switch.js
type: module
- url: /hacsfiles/air-visual-card/air-visual-card.js
type: module
- url: /local/text-element/text-element.js?v=0
type: module
- url: /local/custom-weather-card-chart.js
type: module
- url: /hacsfiles/light-entity-card/light-entity-card.js
type: module
- url: /hacsfiles/thermostat-card/thermostat-card.js
type: module
# https://github.com/iammexx/home-assistant-config/blob/master/ui/darksky/README.md
- url: /local/custom_ui/dark-sky-weather-card.js?v=7.1
type: module
- url: /hacsfiles/surveillance-card/surveillance-card.js
type: module
- url: '/hacsfiles/garbage-collection-card/garbage-collection-card.js'
type: module
- url: /hacsfiles/lovelace-battery-entity-row/battery-entity-row.js
type: module
- url: /hacsfiles/Home-Assistant-Mail-And-Packages-Custom-Card/Home-Assistant-Mail-And-Packages-Custom-Card.js
type: module
- url: /hacsfiles/rgb-light-card/card.js
type: js
- url: /hacsfiles/hass-bha-icons/hass-bha-icons.js
type: js
- url: /hacsfiles/custom-brand-icons/custom-brand-icons.js
type: js
- url: /hacsfiles/lovelace-digital-clock/digital-clock.js
type: module
frontend:
themes: !include_dir_merge_named ../../themes
extra_module_url:
- /hacsfiles/hass-bha-icons/hass-bha-icons.js
- /hacsfiles/custom-brand-icons/custom-brand-icons.js
- /hacsfiles/hass-hue-icons/hass-hue-icons.js
|
Then one of the cards you are using is reusing code from button-card without having changed it. Grep all your cards from your shell and look for |
I have exactly the same issue with 'mod-card'. I definately haven't declared it twice. |
Hi @johntdyer . Did you solve the issue? If yes, what did you do? |
Hi all. I solved the issue for myself. home-assistant/frontend#11494 |
Go to Overview -> Edit dashboard -> Manage dashboards -> Resources. There should be 2 lines. I deleted mine from /hacsfiles folder and kept file in the /local folder. Idk is it correct, but I have no error anymore and charts are working. Btw, I got this error only with firefox. Chrome or edge didnt cause the error. |
Checklist
Describe the bug
Chrome dev console continually complains about this:
Version of the card
Version: 3.5.0b1 and 3.4.2
To Reproduce
Have the card installed and just load the homepage.
Screenshots
Expected behavior
no console errors
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: