Can NOT use web component in sfc
Version
3.2.6
Reproduction link
https://codepen.io/iAdnap/pen/XWgJMGO
Steps to reproduce
- register a web components by
window.customElements.define()
- use your web components in vue
What is expected?
display the web component
What is actually happening?
it won't display, and get a warning: [Vue warn]: Failed to resolve component: custom-webcomponent
see https://v3.vuejs.org/guide/migration/custom-elements-interop.html#_3-x-syntax
your should config isCustomElement
Please, next time consider using the forum, the Discord server or StackOverflow for questions first. But feel free to come back and open an issue if it turns out to be a bug 🙂