uni-app icon indicating copy to clipboard operation
uni-app copied to clipboard

Uncaught (in promise) TypeError: Cannot set properties of undefined (setting 'shown')

Open baiyajin opened this issue 1 year ago • 2 comments

问题描述

使用 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 () at Module.hideTabBar (uni-h5.es.js:2996:9) at Proxy.created (u-tabbar.vue:78:1) at callWithErrorHandling (vue.runtime.esm.js:1375:36) at callWithAsyncErrorHandling (vue.runtime.esm.js:1384:21)

复现步骤 [复现问题的步骤]

  1. 启动 Vue3/Vite版的uniapp
  2. 引入 vk-uview-ui 框架下的 u-tabbar 组件
  3. 启动控制台报错

[或者可以直接贴源代码]

预期结果 不要提示 undefined 不能设置 shown 实际结果 image

系统信息:

  • 发行平台: H5平台
  • 操作系统 windows11
  • HBuilderX版本 3.8.4

补充信息 [可选] 问题出在你们这个文件 uni-h5.es.js

baiyajin avatar Jun 12 '23 09:06 baiyajin