Getting Uncaught DOMException ERROR : CustomElementRegistry.define: 'md-focus-ring' has already been defined as a custom element #5625
Unanswered
FatmaKahloun
asked this question in
Q&A
Replies: 1 comment 4 replies
-
This happens when two versions of MWC are loaded at the same time on a page. Are you embedding a project inside an app that is already using MWC? If so, that's a tricky problem that requires coordination with the app it's being embedded into. If not, I would check your build system or |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm creating my own library using Material design and Lit, but when I add this import statement import '@material/web/checkbox/checkbox.js' inside my new web component file I get this error (Uncaught DOMException : CustomElementRegistry.define: 'md-focus-ring' has already been defined as a custom element).
Can anyone helps me to resolve this issue and thanks.
Beta Was this translation helpful? Give feedback.
All reactions