开发过程中有时候会遇到组件注册失败的问题,原因暂时不明,报如下的错
Unknown custom element: <custom-detail> - did you register the component correctly? For recursive component,make sure to provide the 'name' option.
查看代码发现引用路径和注册都没问题,此组件在其他地方可用,在当前页面不可用,说明组件注册的没有问题,可能是引用问题,但是引用路径又没有报错,查看路径也没问题,上代码:
解决方案: