For recursive components, make sure to provide the “name” option.

Vue 自定义组件,在引用时,出现如下错误:

Unknown custom element: <AuthPageDialog> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

网上找了一下,都是说命名规范,如何引用之类的,对照了一下,都不是我的问题,

最后才发现,是阴沟里翻船:

// 错误
import {AuthPageDialog} from "./components/AuthPageDialog";
// 正确
import AuthPageDialog from "./components/AuthPageDialog";