Skip to content
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

Failed to execute 'define' on 'CustomElementRegistry #12

Open
2 tasks done
riddik14 opened this issue Jun 7, 2024 · 3 comments
Open
2 tasks done

Failed to execute 'define' on 'CustomElementRegistry #12

riddik14 opened this issue Jun 7, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@riddik14
Copy link

riddik14 commented Jun 7, 2024

Requirements

  • I checked the troubleshooting section in the README to verify that I have the latest Mushroom version.
  • I did a search to see if there is a similar issue or if a pull request is open.

Current Behavior

Uncaught error from Chrome 125.0.0.0 on Mac OS 10.15.7 NotSupportedError: Failed to execute 'define' on 'CustomElementRegistry': the name "mushroom-select" has already been used with this registry /hacsfiles/lovelace-mushroom-better-sliders/mushroom.js:29:61 /hacsfiles/lovelace-mushroom-better-sliders/mushroom.js:29:76 n (/hacsfiles/lovelace-mushroom-better-sliders/mushroom.js:1:963) /hacsfiles/lovelace-mushroom-better-sliders/mushroom.js:569:66

Expected Behavior

No response

Steps To Reproduce

No response

Context

YAML state

Environment

- Browser: chrome 
- HA Version: 2024.06
- Mushroom: ultimate

Anything else?

lovelace-mushroom file name identical of lovelace-mushroom-better-slider: meshroom.js and mushroom.js.gz ? can it is a problem for hassio's front end?

@riddik14 riddik14 added the bug Something isn't working label Jun 7, 2024
@BettySwallocks
Copy link

BettySwallocks commented Jul 7, 2024

Following as I have this same issue appearing in logs, noticed since 2024.7 but could have been earlier. I can confirm it occurs with Chrome 126 and Firefox 127 for me.

Logger: frontend.js.latest.202407050
Source: components/system_log/__init__.py:333
First occurred: 11:01:47 (2 occurrences)
Last logged: 11:10:04

Uncaught error from Chrome 126.0.0.0 on Windows 10 Error: Failed to execute 'define' on 'CustomElementRegistry': the name "mushroom-select" has already been used with this registry window.CustomElementRegistry.define (src/scoped-custom-element-registry.js:44:14) /hacsfiles/lovelace-mushroom/mushroom.js:29:61 /hacsfiles/lovelace-mushroom/mushroom.js:29:76 n (/hacsfiles/lovelace-mushroom/mushroom.js:1:963) /hacsfiles/lovelace-mushroom/mushroom.js:569:66
Uncaught error from Firefox 127.0 on Windows 10 Error: Failed to execute 'define' on 'CustomElementRegistry': the name "mushroom-select" has already been used with this registry 3900/</window.CustomElementRegistry.prototype.define (src/scoped-custom-element-registry.js:44:14) pt/</< (/hacsfiles/lovelace-mushroom-better-sliders/mushroom.js:29:61) pt/< (/hacsfiles/lovelace-mushroom-better-sliders/mushroom.js:29:76) n (/hacsfiles/lovelace-mushroom-better-sliders/mushroom.js:1:963) /hacsfiles/lovelace-mushroom-better-sliders/mushroom.js:569:66

@Zockerherz
Copy link

Hey Guys,

I have the same Error in my logs. :)

Logger: frontend.js.latest.202407100
Quelle: components/system_log/__init__.py:333
Erstmals aufgetreten: 07:47:41 (1 Vorkommnisse)
Zuletzt protokolliert: 07:47:41

Uncaught error from Edge 126.0.0.0 on Mac OS 10.15.7 Error: Failed to execute 'define' on 'CustomElementRegistry': the name "mushroom-select" has already been used with this registry window.CustomElementRegistry.define (src/scoped-custom-element-registry.js:44:14) /hacsfiles/lovelace-mushroom-better-sliders/mushroom.js:29:61 /hacsfiles/lovelace-mushroom-better-sliders/mushroom.js:29:76 n (/hacsfiles/lovelace-mushroom-better-sliders/mushroom.js:1:963) /hacsfiles/lovelace-mushroom-better-sliders/mushroom.js:569:66

@topshelf510
Copy link

topshelf510 commented Aug 5, 2024

Same too, for the most part 😅


Logger: frontend.js.latest.202407100
Source: components/system_log/__init__.py:333
First occurred: August 4, 2024 at 11:15:49 PM (13 occurrences)
Last logged: 2:39:32 PM

Uncaught error from Mobile Safari 18.0 on iOS 18.1 Error: Failed to execute 'define' on 'CustomElementRegistry': the name "mushroom-select" has already been used with this registry message (node_modules/core-js/modules/web.dom-exception.stack.js:25:24) src/scoped-custom-element-registry.js:45:10 /hacsfiles/lovelace-mushroom-better-sliders/mushroom.js:29:67 n (/hacsfiles/lovelace-mushroom-better-sliders/mushroom.js:1:964) module code (/hacsfiles/lovelace-mushroom-better-sliders/mushroom.js:569:67)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants