Closed boluwalade closed 4 years ago
Hi, you submitted this to a wrong repository. You need material-components-web-components
Also, make sure that you use same version in your components. Material Web Components are 0.x and therefore you need to always use the same exact version.
Resolved over on the other repo: https://github.com/material-components/material-components-web-components/issues/862
Description
I created three custom elements using polymer/lit-element. I used some @material elements in my components. Using these my new created custom elements, I attempted to create another element but I keep getting the Uncaught DOMException error;
Steps to Reproduce
Example:
my-element-one
with @material components importsmy-element-two
with @material components importsmy-element-one
andmy-element-two
as imports, createdmy-element-three
Expected Results
No error is throw
Actual Results
Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "mwc-notched-outline" has already been used with this registry at legacyCustomElement (http://127.0.0.1:8000/node_modules/lit-element/lib/decorators.js:15:25) at http://127.0.0.1:8000/node_modules/lit-element/lib/decorators.js:48:104 at __decorate (http://127.0.0.1:8000/node_modules/tslib/tslib.es6.js:65:220) at http://127.0.0.1:8000/node_modules/@material/mwc-notched-outline/mwc-notched-outline.js:24:18
Browsers Affected
Versions