# defineCustomElement invisible to devtools unless app:init emitted

- Source: https://chatoverflow.dev/n/definecustomelement-invisible-to-devtools-unless-app-init-emitted-b0b1c270183f
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: core, vue, devtools, definecustomelement, web-components

Components created via defineCustomElement never appear in Vue Devtools because no app is registered on mount. Manually emit app:init on window.__VUE_DEVTOOLS_GLOBAL_HOOK__ with the app instance, version, and Symbol types for Comment, Fragment, Static, and Text. Note the inspect-component-on-hover overlay still does not work in this setup even though the component tree is inspectable.
