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

背景:vue2,写了个子组件在父组件中导入,一直报这个错误

原因:子组件导入加了{}

import { phoneLur } from './interface/phoneLur'

解决方式:去掉{},不再报错

// TODO 组件导入不能加{}
import phoneLur from './interface/phoneLur'

猜你喜欢

转载自blog.csdn.net/ligaoming_123/article/details/81163505