添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
[Vue warn]: Unknown custom element:  did you register the component correctly? For recursive components, make sure to provide the "name" option.

问题原因是:使用了相关组件,但没有引入

首先找出引起报错的相关代码,查看有没有使用类似组件,例如使用了 radio-group 和 radio组件,但是没有引入,这时候就会出现上面的错误

 <el-form-item label="状态:">
      <el-radio-group v-model="formData.status">
            <el-radio :key="item.value"
            :label="item.value"
            v-for="item in statusOptions" >{{item.label}}</el-radio>
      </el-radio-group>
</el-form-item>

在项目目录中找到 main.js,然后 import {} from引入相关组件,再 Vue.use()使用即可,例如:

import {
    Radio,
    RadioGroup,
} from 'element-ui';
Vue.use(Radio);
Vue.use(RadioGroup);

这样就完成了组件的全局引入

[Vue warn]: Unknown custom element: <el-row> - did you register the component correctly? For recursi

babel.config.js 文件中module.exports = { presets: [ '@vue/cli-plugin-bab

did you register the component correctly? For recursive components, make sure to provide the

错误提示:解决办法: 找到ser

did you register the component correctly? For recursive components, make sure to provide the “name“

报错截图:在写一个折叠组件动画,引入该组件时,报了个这样的警告,组件死活引入不到,什么原因呢?impo

vue.runtime.esm.js?2b0e:619 [Vue warn]: Unknown custom element: <roter-link> - did you register t...

所以读书非常重要,一个善于读书的人,能够完成自我对学习的需要。读书对一个人来说,永远都是进行时,而不是完成时。通过读书来提升自己,才会遇到更好的...

van-action-sheet - did you register the component correctly? For recursive components, make sure t

在使用Vant UI组件的ActionSheet 上拉菜单时一直报错,有遇到的嘛?vue.esm.js?efeb:628ent correctly? For recursive components, make s...

【Vue warn】If this is a native custom element, make sure to exclude it from component resolution ……

百度翻译一下:如果这是一个本地自定义元素,请务必通过编译器从组件分辨率中排除它。

[Vue warn]: Method “components“ has type “object“ in the component definition. Did you reference the

报错如下: