我可爱的app
我可爱的app
  • 发布:2025-03-26 23:31
  • 更新:2025-03-26 23:31
  • 阅读:74

【报Bug】鸿蒙运行提示 [Vue warn]: Failed to resolve component: cell\nIf this is a。。。

分类:鸿蒙Next

产品分类: uniapp/App

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: macos 15.3.2

HBuilderX类型: 正式

HBuilderX版本号: 4.57

手机系统: HarmonyOS NEXT

手机系统版本号: HarmonyOS NEXT Developer Beta2

手机厂商: 模拟器

手机机型: 鸿蒙模拟器

页面类型: nvue

vue版本: vue3

打包方式: 云端

项目创建方式: HBuilderX

示例代码:
<list id="page" class="page" ref="pagemain" :bounce="true" :enable-back-to-top="true" :show-scrollbar="false" isSwiperList="true" @scroll="page_onScroll"> <zRefresh @refresh="onrefresh(index1)" :refreshing="refreshing" @pullingdown="onpullingdown" refreshText="refreshText"> </zRefresh>
<!-- 不固定,随着竖向滚动条滑动 -->
<cell>
<view id="intro-box" class="intro-box" ref="intro_box">
<view class="backtop" ref="topRef" style="height: 0;"></view>
/////////省略代碼
</view>
</view>
</cell>
</list>

操作步骤:

运行到鸿蒙模拟器

预期结果:

实际结果:

以上报错

bug描述:

在安卓、ios运行都没有问题

在鸿蒙上运行出现以下报错,页面混乱。

[Vue warn]: Failed to resolve component: cell\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement. \n at <Home pageId=1 pagePath="pages/home/home" pageQuery= { ⁠...⁠ } ... >
23:16:22.972 [Vue warn]: Failed to resolve component: waterfall\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement. \n at <Home
pageId=1 pagePath="pages/home/home" pageQuery= { ⁠...⁠ } ... >
23:16:22.972 [Vue warn]: Failed to resolve component: list\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement. \n at <Home pageId=1 pagePath="pages/home/home" pageQuery= { ⁠...⁠ } ... >
23:16:22.983 [Vue warn]: Failed to resolve component: refresh\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement. \n at <Z2Refresh onRefresh=fn refreshing=false onPullingdown=fn<bound onpullingdown> ... > \n at <Home
pageId=1 pagePath="pages/home/home" pageQuery= { ⁠...⁠ } ... >
23:16:22.983 [Vue warn]: Failed to resolve component: loading-indicator\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement. \n at <Z2Refresh onRefresh=fn refreshing=false onPullingdown=fn<bound onpullingdown> ... > \n at <Home pageId=1 pagePath="pages/home/home" pageQuery= { ⁠...⁠ } ... >
23:16:22.993 ReferenceError: dom is not defined
23:16:22.993 at Proxy.readyStart (app-service.js:9029:9)
23:16:22.993 at Proxy.onReady (app-service.js:8979:12)
23:16:22.993 at callWithErrorHandling (http://localhost/file12.js:3075:21)
23:16:22.993 at callWithAsyncErrorHandling (http://localhost/file12.js:3082:17)
23:16:22.993 at Array.<anonymous> (http://localhost/file12.js:5559:19)
23:16:22.993 at invokeArrayFns2 (http://localhost/file12.js:625:19)
23:16:22.994 at invokeHook (http://localhost/file12.js:16265:21)
23:16:22.994 at http://localhost/file12.js:20188:13
23:16:23.226 [Vue warn]: Failed to resolve component: cell\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement. \n at <Home
pageId=1 pagePath="pages/home/home" pageQuery= { ⁠...⁠ } ... >
23:16:23.226 [Vue warn]: Failed to resolve component: waterfall\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement. \n at <Home pageId=1 pagePath="pages/home/home" pageQuery= { ⁠...⁠ } ... >
23:16:23.226 [Vue warn]: Failed to resolve component: list\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement. \n at <Home
pageId=1 pagePath="pages/home/home" pageQuery= { ⁠...⁠ } ... >

2025-03-26 23:31 负责人:无 分享
已邀请:

要回复问题请先登录注册

  • 标题 / 粗斜体
  • 代码片段
  • 超链接 / 图片 / 视频
  • 列表 / 引用

文章内容较多时,可以用标题分段 :

## 大标题 
### 小标题

斜体 / 粗体 :

**粗体** 
*斜体*
***粗斜体***

代码片段 :

``` javascript
代码片段
```

超链接 :

[链接文字](链接地址) 例: [百度](http://www.baidu.com)

图片 :

![图片说明](图片地址) 例: ![百度logo](http://www.baidu.com/img/bdlogo.gif)

视频 :

!![视频说明](视频地址) 例: !![优酷视频](http://youku.com)

有序列表 :

1. 123
2. 123
3. 123

无序列表 :

- 123
- 123
- 123

引用 : ( 双回车后结束引用 )

> 引用内容
引用内容
引用内容