Unknown custom element: - did you register the component correctly?

[已解决]vue引用组件提示:Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.

检查引用组件的步骤是否正确:

1、导入组件

import Demo from "./Demo";

2、注册

在当前页面的components对象中注册引入的组件:

components: {
 Demo
}