basically I need VueJS to warn me about unregistered components when in DOM template parsing mode. It currently looks like Vue is not caring about custom HTML when using DOM templates, meanwhile errors are correctly issued when using single-file components, string templates and x-templates (as per the docs).
One simple way to reproduce the issue is to register a component:
Vue.component('existing', {
template: `
<div>
<p>Existing component</p>
</div>
`
})
and then mount a simple Vue instance
new window.Vue({
el: '#app',
data() {
return {
text: 'text'
}
},
mounted() {
console.log('mounted')
}
})
where, in the DOM under the #app element, there is an unregistered element, as in
<div id="app">
{{text}}
<existing></existing>
<!-- Should give an error -->
<non-existing></non-existing>
</div>
I've prepared a CodePen to reproduce this simple environment.