Failed to execute 'define' on 'CustomElementRegistry'
See original GitHub issueWith both 14.0.5 and 15.0.0.alpha1 my app won’t load and throws this client exception:
Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "dom-module" has already been used with this registry
at eval (webpack-internal:///../node_modules/@axians/axians-app-layout/node_modules/@polymer/polymer/lib/elements/dom-module.js?babel-target=es6:181:16)
I’ve found https://github.com/Polymer/polymer/issues/5407 but I’m not sure how apply the workaround with Vaadin. Also, removing node_modules
and package-lock.json
isn’t helping!
Issue Analytics
- State:
- Created 4 years ago
- Comments:17 (17 by maintainers)
Top Results From Across the Web
Uncaught DOMException: Failed to execute 'define' on ...
this error is due to a custom element tag-name being registered which is already registered; to fix simply check that an element by...
Read more >Failed to execute 'define' on 'CustomElementRegistry'
JavaScript error Uncaught DOMException : Failed to execute 'define' on 'CustomElementRegistry': the name "ss3-force-full-width" has already ...
Read more >Trix error: Uncaught DOMException ... (in my local Dev ...
Uncaught DOMException : Failed to execute 'define' on 'CustomElementRegistry': the name "trix-toolbar" has already been used with this registry.
Read more >failed to execute 'define' on 'customelementregistry angular
ERROR DOMException : Failed to execute 'define' on 'CustomElementRegistry': this name has already been used with this registry. The calls to ...
Read more >Multiple Custom element developed in angular element
... I try to use them in single html I get error "Failed to execute 'define' on 'CustomElementRegistry': this name has already been...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
According to your
package-lock.json
,@axians/axians-app-layout
has a dependency on@polymer/polymer 3.3.0
. If you don’t use it you should remove it.Yeah, downgrading to Polymer 3.0.0 fixed the issue. I’ll follow-up on #6009 to know when I can upgrade again! Thanks Mehdi!