Closed hslee2008 closed 2 years ago
@HyunseungLee-Travis This happens when loading the script multiple times on the same page.
There are times when it is not possible to avoid running the script multiple times, for instance when two libraries that use the component are used together in the same project. This is the issue that I am encountering currently. Would it be possible to check whether the element is already defined before defining it? This guide has an example: https://medium.com/tuitech/implement-a-ui-library-with-web-components-de0bffcf39ff
I have to reload the page to not get the error. Happens every time I change code.