Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the “name” option.
出现这种报错,你需要排查:(仅供vue脚手架使用者参考)
1、是否引入模板文件
2、components是否拼写错误
3、是否已经定义使用过components,一个export default {}里面只能有一个
4、components是否放在export default {}里,而不是data()等函数里
Unknown custom element:did you register the component correctly?
最新推荐文章于 2024-09-14 15:01:57 发布