Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the “name” option.
在注册全局组件的时候发现的错误,原因是顺序不正确,应在实例vue之前注册全局组件
错误示范
//错误示范
new Vue({
render: h => h(App),
}).$mount('#app')
Vue.component('Count', Count)
正确示范
//正确示范
Vue.component('Count', Count)
new Vue({
render: h => h(App),
}).$mount('#app')