uni-app
uni-app copied to clipboard
Uncaught (in promise) TypeError: Cannot set properties of undefined (setting 'shown')
问题描述
使用 npx degit dcloudio/uni-preset-vue#vite my-vue3-project 创建的 Vue3/Vite版
在项目中使用 vk-uview-ui 框架下的 u-tabbar 组件
uni-h5.es.js:21786 Uncaught (in promise) TypeError: Cannot set properties of undefined (setting 'shown')
at setTabBar (uni-h5.es.js:21786:21)
at uni-h5.es.js:21845:5
at uni-h5.es.js:3112:12
at invokeApi (uni-h5.es.js:2975:10)
at uni-h5.es.js:2997:11
at new Promise (
复现步骤 [复现问题的步骤]
- 启动 Vue3/Vite版的uniapp
- 引入 vk-uview-ui 框架下的 u-tabbar 组件
- 启动控制台报错
[或者可以直接贴源代码]
预期结果
不要提示 undefined 不能设置 shown
实际结果
系统信息:
- 发行平台: H5平台
- 操作系统 windows11
- HBuilderX版本 3.8.4
补充信息 [可选] 问题出在你们这个文件 uni-h5.es.js