Hiten B
Hiten B

Reputation: 61

Version conflict - Uncaught DOMException, the name "mwc-icon" has already been used with this registry. Custom Component

I'm trying to use Material Custom Component and also using some other components. But I have version conflict Uncaught DOMException.

Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "mwc-icon" has already been used with this registry.

Currently, I'm using the yarn package manager to handle custom-component versions.

Upvotes: 2

Views: 865

Answers (1)

niorad
niorad

Reputation: 1370

Somewhere in your code, you're trying to register the same custom element more than once. Maybe you're importing a library twice?

Upvotes: 2

Related Questions