app开发人员
app开发人员
  • 发布:2020-10-28 17:38
  • 更新:2024-07-09 12:02
  • 阅读:6300

【报Bug】 [Vue warn]: Unknown custom element: <App> - did you register the component correctly?

分类:HBuilderX

产品分类: HbuilderX

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: 企业版 LTSC

HBuilderX版本号: 2.9.3

操作步骤:

安装 创建官方demo

预期结果:

可以用

实际结果:

空白,报错

bug描述:

点击运行-浏览器,出来之后是空白。
使用的是官方demo,
重新删除,安装过不下10次了。

chunk-vendors.js:1104 [Vue warn]: Property or method "keepAliveInclude" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.

(found in at D:/Users/Administrator/Documents/HBuilderProjects/Hello/App.vue)
warn @ chunk-vendors.js:1104
chunk-vendors.js:1104 [Vue warn]: Unknown custom element: <App> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

(found in at D:/Users/Administrator/Documents/HBuilderProjects/Hello/App.vue)

2020-10-28 17:38 负责人:无 分享
已邀请:
chenli

chenli

建议提供的创建的demo,方便他人排查!

  • app开发人员 (作者)

    demo就是官方的所有demo,包括插件市场的所有插件和示例。没有一个运行得起来的,请考虑一下,是否是hx的vue是否和什么冲突了,或者是Windows企业版无法使用,或者是LTSC无法使用。

    2020-10-29 14:29

  • app开发人员 (作者)

    我电脑有问题,别的电脑正常。这是bug吧。

    2020-10-29 14:30

  • chenli

    回复 app开发人员: 用你电脑编译的项目,把ip(http://192.168.1.100:8080)给同局域网的电脑访问看是否正常

    2020-10-29 14:51

  • app开发人员 (作者)

    回复 chenli: 不正常,这报错不是显示的,vue组件没注册吗。自己访问都不正常,怎么局域网能正常,chrome ff 都是显示的vue错误。

    2020-10-29 15:04

  • app开发人员 (作者)

    大佬?人呢

    2020-10-30 15:46

白衣剑

白衣剑

我的电脑 也是这样 用的最新版本 ,重装win11 后也是这样,怎么 处理

1***@qq.com

1***@qq.com

我的也是这样,大佬们这个问题解决了么?我是用的最新的官网下载的稳定版本HBuilderX3.6.5

j***@126.com

j***@126.com

解决方案

https://ask.dcloud.net.cn/article/41170

要回复问题请先登录注册