报错如下:
“ Unknown custom element: <XXX> - did you register the component correctly? For recursive components, make sure to provide the "name" option.”这种情况是组件引入时候错误导致的
错误写法:
import {FileSidebar} from "@/components/FileSidebar/index";正确的写法是:
import FileSidebar from "@/components/FileSidebar/index";注意二者的区别
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。