t***@outlook.com
t***@outlook.com
  • 发布:2025-07-09 09:47
  • 更新:2025-07-09 18:20
  • 阅读:19

【报Bug】cli升级后nvue报错无法渲染

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Mac

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

手机系统: 全部

手机厂商: 华为

页面类型: nvue

vue版本: vue3

打包方式: 云端

项目创建方式: CLI

CLI版本号: 3.0.0-4060620250520001

测试过的手机:

红米note14 pro,苹果14

操作步骤:

执行npx @dcloudio/uvm@latest后,nvue页面报错[Vue warn]: Component is missing template or render function.
at <ApppageId=3pagePath="pages/home/index"__pageQuery={}>,我把nvue页面内容删掉,只写了<template>
<view class="home_page_content">首页</view></template>,还是一样报错

预期结果:

希望能正常渲染

实际结果:

报错,无法渲染

bug描述:

"@dcloudio/uni-app": "3.0.0-4060620250520001",
"@dcloudio/uni-app-harmony": "3.0.0-4060620250520001",
"@dcloudio/uni-app-plus": "3.0.0-4060620250520001",
"@dcloudio/uni-components": "3.0.0-4060620250520001",
"@dcloudio/uni-h5": "3.0.0-4060620250520001",
"@dcloudio/uni-mp-alipay": "3.0.0-4060620250520001",
"@dcloudio/uni-mp-baidu": "3.0.0-4060620250520001",
"@dcloudio/uni-mp-harmony": "3.0.0-4060620250520001",
"@dcloudio/uni-mp-jd": "3.0.0-4060620250520001",
"@dcloudio/uni-mp-kuaishou": "3.0.0-4060620250520001",
"@dcloudio/uni-mp-lark": "3.0.0-4060620250520001",
"@dcloudio/uni-mp-qq": "3.0.0-4060620250520001",
"@dcloudio/uni-mp-toutiao": "3.0.0-4060620250520001",
"@dcloudio/uni-mp-weixin": "3.0.0-4060620250520001",
"@dcloudio/uni-mp-xhs": "3.0.0-4060620250520001",
"@dcloudio/uni-quickapp-webview": "3.0.0-4060620250520001",
cli版本刚升级到3.0.0-4060620250520001,
ubuilderx 4.66
nvue页面报错 ,无法渲染[Vue warn]: Component is missing template or render function.
at <ApppageId=3pagePath="pages/home/index"__pageQuery={}>

2025-07-09 09:47 负责人:无 分享
已邀请:
t***@outlook.com

t***@outlook.com (作者)

在 package.json 中添加 "pnpm": {"overrides": {"rollup":"4.14.3"}},重新安装,打包即解决

要回复问题请先登录注册