
- 发布:2024-03-28 12:21
- 更新:2024-09-27 17:39
- 阅读:316
产品分类: 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>
</template>
操作步骤:
开发android原生组件,本地引入,制作自定义基座包, 用vue3 运行。
开发android原生组件,本地引入,制作自定义基座包, 用vue3 运行。
预期结果:
android 原生组件 用nvue 在 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.
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之后,就一切正常。
1 个回复
8***@qq.com
问下 这个问题 最后用vue3解决了吗