vue项目运行报错
#当运行项目发现以下这种错误时:
vue.esm.js?efeb:628 [Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the “name” option.
found in
—> at src/components/login/login.vue
at src/App.vue
解决方案就是:找到错误提示的标签的地方然后把它改正:
<el-input v-model="loginForm.userName" placeholder="请输入用户名" ></el-input>
<sapn></sapn>
把<sapn>标签改为<span>就好