vue.runtime.esm.js?2b0e:619 [Vue warn]: Unknown custom element: <el-form> - did you register the com

在引用Vue组件的时候出现引入错误:

vue.runtime.esm.js?2b0e:619 [Vue warn]: Unknown custom element: <el-form> - did you register the com

这个时候要看一下是否引入了element的JS文件,是否进行了全局的配置

vue.runtime.esm.js?2b0e:619 [Vue warn]: Unknown custom element: <el-form> - did you register the com
这个时候看到elementJS文件已经引入,要在看一下是否进行了全局的注册

vue.runtime.esm.js?2b0e:619 [Vue warn]: Unknown custom element: <el-form> - did you register the com
现在这个时候看到了已经进行了按需导入,并且还进行了全局的注册

然后我感觉了全局注册有了问题
进行了修改
vue.runtime.esm.js?2b0e:619 [Vue warn]: Unknown custom element: <el-form> - did you register the com
vue.runtime.esm.js?2b0e:619 [Vue warn]: Unknown custom element: <el-form> - did you register the com
现在可以看到了已经没有了报错