今天爱分享给大家带来[Vue warn]: Unknown custom element: – did you register the component correctly【解决办法】,希望能够帮助到大家。
[Vue warn]: Unknown custom element: – did you register the component correctly? For recursive components, make sure to provide the “name” option.
原因: 被引用的组件页面没有进行export,导致寻找不到浏览器console报错,但是编译的时候没有语法问题不报错
解决:
export { default as AppMain } from './AppMain'
原文链接:https://blog.itblood.com/1262.html,转载请注明出处。

![和存在感薄弱妹妹一起的简单生活 v0.80 官方中文版[更新][PC+安卓/4.1G] [同居互动SLG/官中/动态]](/wp-content/uploads/replace/2025/09/01/9bd8b7c84ebc327597fd3a94d4521b72.webp)