使用vue时 调用组件报错 [Vue warn]: Unknown custom element: <XXX> - did you register the

519 阅读1分钟

调用组件时报错未注册
[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.

这时就需要看一下引用组件路径位置 是否有错。
问题可能如下:

  1. 组件是否引入
  2. 路径是否正确;
  3. 名称是否写入正确;
  4. 引入单个文件是否带有大括号 (此次出现这个错误就是 引入单个文件带了大括号) ...等等 欢迎大家补充

检查后解决就完事~