dcloudio / dcloudio/uni-app

使用vue3+vite的脚手架创建项目,使用uts插件的nvue文件打包自定义基座之后,运行会报出警告Component is missing template or render function.导致组件无法使用

Open
#5,764 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
41.6k
Forks
3.7k
Avg merge
7h 6m
Merged PRs (30d)
6

Description

### Bug 描述

nvue文件在vue3+vite创建的脚手架中使用uts插件的组件,无法被渲染,提示Component is missing template or render function.
"dependencies": {
"@dcloudio/uni-app": "3.0.0-4070620250821001",
"@dcloudio/uni-app-harmony": "3.0.0-4070620250821001",
"@dcloudio/uni-app-plus": "3.0.0-4070620250821001",
"@dcloudio/uni-components": "3.0.0-4070620250821001",
"@dcloudio/uni-h5": "3.0.0-4070620250821001",
"@dcloudio/uni-mp-alipay": "3.0.0-4070620250821001",
"@dcloudio/uni-mp-baidu": "3.0.0-4070620250821001",
"@dcloudio/uni-mp-harmony": "3.0.0-4070620250821001",
"@dcloudio/uni-mp-jd": "3.0.0-4070620250821001",
"@dcloudio/uni-mp-kuaishou": "3.0.0-4070620250821001",
"@dcloudio/uni-mp-lark": "3.0.0-4070620250821001",
"@dcloudio/uni-mp-qq": "3.0.0-4070620250821001",
"@dcloudio/uni-mp-toutiao": "3.0.0-4070620250821001",
"@dcloudio/uni-mp-weixin": "3.0.0-4070620250821001",
"@dcloudio/uni-mp-xhs": "3.0.0-4070620250821001",
"@dcloudio/uni-quickapp-webview": "3.0.0-4070620250821001",
"@livekit/components-core": "^0.8.2",
"@openim/client-sdk": "^0.0.14",
"@tanstack/match-sorter-utils": "^8.19.4",
"@tanstack/query-core": "^5.87.1",
"@tanstack/vue-query": "^5.62.16",
"@vant/area-data": "^2.0.0",
"@vue/devtools-api": "^8.0.1",
"@vue/devtools-kit": "^8.0.1",
"@vue/devtools-shared": "^8.0.1",
"@vueuse/core": "12.3.0",
"@vueuse/shared": "^12.3.0",
"abortcontroller-polyfill": "^1.7.8",
"alova": "^3.3.3",
"birpc": "^2.5.0",
"capacitor-plugin-jpush": "^1.0.7",
"date-fns": "^2.30.0",
"dayjs": "1.11.10",
"hookable": "^5.5.3",
"jsencrypt": "3.3.2",
"livekit-client": "^1.15.13",
"mitt": "^3.0.0",
"moment": "^2.30.1",
"openim-uniapp-polyfill": "^1.4.3",
"perfect-debounce": "^2.0.0",
"pinia": "2.0.36",
"pinia-plugin-persistedstate": "3.2.1",
"qrcode.vue": "^3.6.0",
"recorder-core": "^1.3.25011100",
"semver": "7.6.3",
"std-env": "^3.9.0",
"svgaplayerweb": "^2.3.2",
"tools-vue3": "2.0.3",
"uuid": "^11.1.0",
"vconsole": "^3.15.1",
"vue": "^3.4.21",
"vue-demi": "^0.14.10",
"vue-i18n": "10.0.4",
"vue-router": "4.4.5",
"wot-design-uni": "^1.11.1",
"xgplayer": "^3.0.22",
"z-paging": "2.8.7"
},

### 复现步骤

进入使用第三方插件的uts的页面,第三方插件的组件无法被渲染

### 预期结果

可以正常渲染第三方插件的组件

### 实际结果

不能正常渲染

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.