原生插件开发哦
原生插件开发哦
  • 发布:2024-03-28 12:21
  • 更新:2024-03-28 12:21
  • 阅读:62

【报Bug】 andorid 原生组件 用nvue加载, 在vue3下面报错,不显示组件 ,换成vue2就一切正常

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: 14.1.2 (23B92)

HBuilderX类型: 正式

HBuilderX版本号: 3.99

手机系统: Android

手机系统版本号: Android 12

手机厂商: 华为

手机机型: 畅享20

页面类型: nvue

vue版本: vue3

打包方式: 云端

项目创建方式: HBuilderX

示例代码:
<template> <view> <athree-livePlay :url="url" ref="livePlay" style="{ width: hqwidth, height: hqhight }"></athree-livePlay> </view>
</template>

操作步骤:

开发android原生组件,本地引入,制作自定义基座包, 用vue3 运行。

预期结果:

android 原生组件 用nvue 在 vue3下,可以正常使用

实际结果:

android 原生组件 用nvue 在 vue3下, 无法使用,组件不显示

11:22:29.149 [Vue warn]: Failed to resolve component: athree-livePlay
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.

bug描述:

11:22:29.149 [Vue warn]: Failed to resolve component: athree-livePlay
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
at <LivePlaypageId=6pagePath="pages/index/livePlay"__pageQuery={}>

提示这个错误, 换成vue2之后,就一切正常。

2024-03-28 12:21 负责人:无 分享
已邀请:

要回复问题请先登录注册