vue-2.5.16.js:597 [Vue warn]: Unknown custom element: - did you register the component corre
2019-06-02 17:15
861 查看
vue-2.5.16.js:597 [Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the “name” option.
found in
—>
这里,显示你自定义的vue组件没有注册。为你提供一个解决思路,请查看你全局注册中声明注册标签的components是否书写正确,这里很容易发生错误,因为在全局注册时期间出现了两个名为component的单词,但第二个应该在这里加上s,代码如下:
Vue.component('组件名称',{ template:'封装的HTML代码', components:{ 要注册的组件名称, } })
相关文章推荐
- Unknown custom element: - did you register the component correctly? For recursive components, make s
- 注册vue组件提示 did you register the component correctly?
- Vue 2.0 WARN: Unknown Custom Element
- Vue中Unknown custom element: - did you register the component correctly?
- [Vue] Dynamic Vue.js Components with the component element
- webpack打包vue2.0,[Vue warn]: You are using the runtime-only build of Vue where the template compiler
- vue父子组件嵌套的时候遇到 - Component template should contain exactly one root element. If you are using v-i
- [Vue warn]: Attribute "id" is ignored on component <div> because the component is a fragment instanc
- 使用vue.js路由踩到的一个坑Unknown custom element
- [Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available
- [Vue warn]: You are using the runtime-only build of Vue where the templa
- vue-cli3 [Vue warn]: You are using the runtime-only build of Vue where the template compileris is
- vue.js报错 vue.js:597 [Vue warn]: Cannot find element: #app
- [Vue warn]: Attribute "id" is ignored on component <div> because the component is a fragment instan
- vue常见错误:vue.runtime.esm.js:574 [Vue warn]: You are using the runtime-only build of Vue where the tem
- [Vue warn]: Error compiling template Component template requires a root element, rather than just te
- vue常见错误:- Component template should contain exactly one root element. If you are using v-if on multi
- Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
- C# The designer loader did not provide a root component but has not indicated why.
- Error: unknown host ‘android.oa.com'.You may need to adjust the proxy setting in Gradle.