adizanni / floor3d-card

Your Home Digital Twin: aka floor3d-card. Visualize Home Assistant state and perform actions using objects in a 3D home model based on Three.js.
https://github.com/adizanni/floor3d-card
MIT License
448 stars 65 forks source link

Failed to execute 'define' on 'CustomElementRegistry': the name "mwc-notched-outline" has already been used with this registry #169

Closed justinhunt1223 closed 6 months ago

justinhunt1223 commented 9 months ago

Checklist:

Release with the issue:

Current floor3d-card-modified.txt

Last working release (if known):

Browser and Operating System:

Description of problem:

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

Javascript errors shown in the web inspector (if applicable):

Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "mwc-notched-outline" has already been used with this registry
    define scoped-custom-element-registry.js:44
    Ct floor3d-card.js:40
    Ct floor3d-card.js:40
    r floor3d-card.js:1
    <anonymous> floor3d-card.js:222

Additional information: I'm trying to work on some changes and have the development environment setup with vscode. I updated home assistant to pull floor3d-card.js from http://localhost:5000/floor3d-card.js. The untouched file from the repo works this way. Once a change is made and floor3d-card.js is rebuilt, the error above appears and home assistant throws an error about the floor3d-card custom element does not exist.

To build the new js file, I ran npm start in the vscode terminal, is this the correct command? I attached the new compiled file for reference.

adizanni commented 6 months ago

Hello @justinhunt1223 , in my project this is the command I use in terminal to compile the Typescript:

npm run lint && npm run rollup
adizanni commented 6 months ago

I cannot reproduce the issue so I close the ticket, if you have more info, reopen and I will do the investigations

adizanni commented 6 months ago

Closain