-
Notifications
You must be signed in to change notification settings - Fork 79
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
Error: Failed to execute 'define' on 'CustomElementRegistry': the name "action-handler-clock-weather" has already been used with this registry #409
Comments
hi @Chaoscontrol, does this error occur on a regular basis for you? otherwise i assume i could have happened during after HACS upgrade. |
Yes it does. Here the latest occurrences (not showing the full error to keep it clean):
Important to note that lately I have never even opened the single dashboard that has this card. So the error triggers completely unrelated to it being displayed or not. |
Just chiming in since I also frequently get this error (for quite a while now, across various updates) - I just did a few new updates today and was checking logs and figured I'd see if I could find out why this one always shows up - which is how I found this issue:
|
Oh. I was expecting this fixed with this new minor release 2.8.4, but it's still happening. :( |
it´s still happening here too.. I don't know if there is anything we could manually do to fix it |
I'm having this issue to... I don't know how long I've been having it but I realized when I was taking a look to the logs.. 2024-10-09 19:19:12.773 ERROR (MainThread) [frontend.js.modern.202410022] Uncaught error from WebKit 605.1.15 on iOS 18.0.1
Error: Failed to execute 'define' on 'CustomElementRegistry': the name "action-handler-clock-weather" has already been used with this registry
2024-10-09 19:25:36.119 ERROR (MainThread) [frontend.js.modern.202410022] Uncaught error from WebKit 605.1.15 on iOS 18.0.1
Error: Failed to execute 'define' on 'CustomElementRegistry': the name "action-handler-clock-weather" has already been used with this registry
2024-10-09 21:15:50.732 ERROR (MainThread) [frontend.js.modern.202410022] Uncaught error from Safari 18.0.1 on Mac OS 10.15.7
Error: Failed to execute 'define' on 'CustomElementRegistry': the name "action-handler-clock-weather" has already been used with this registry |
Fixes #409 Add a check to prevent defining the custom element 'action-handler-clock-weather' multiple times. * Use `if (!customElements.get('action-handler-clock-weather'))` to check if the custom element is already defined before defining it. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/pkissling/clock-weather-card/issues/409?shareId=XXXX-XXXX-XXXX-XXXX).
Checklist:
Release with the issue: 2.8.0
Last working release (if known): N/A
Browser and Operating System: Chrome, Windows 11 (unsure why the logs say Windows 10, I don't have any)
Description of problem:
Since updating to HA 2024.7, this error started showing in HA logs. Card seems to work fine in the meantime.
Javascript errors shown in the web inspector (if applicable):
https://xfiles.s-ul.eu/jqV08zOo
Additional information:
The text was updated successfully, but these errors were encountered: