升级HbuilderX 3.2.12.20211029后项目报错 11:26:51.094 cid unmatched at view.umd.min.js:1
问题描述 升级HbuilderX 3.2.12.20211029 11:26:51.094 cid unmatched at view.umd.min.js:1 11:26:51.118 TypeError: Invalid attempt to destructure non-iterable instance. 11:26:51.141 In order to be iterable, non-array objects must have a Symbol.iterator method. at view.umd.min.js:1 11:26:51.162 cid unmatched at view.umd.min.js:1 11:26:51.184 TypeError: Invalid attempt to destructure non-iterable instance. 11:26:51.207 In order to be iterable, non-array objects must have a Symbol.iterator method. at view.umd.min.js:1 11:26:51.227 cid unmatched at view.umd.min.js:1 11:26:51.251 TypeError: Invalid attempt to destructure non-iterable instance. 11:26:51.272 In order to be iterable, non-array objects must have a Symbol.iterator method. at view.umd.min.js:1 11:26:51.293 cid unmatched at view.umd.min.js:1
复现步骤 [复现问题的步骤] 1、运行到真机后,滑动就出现以上错误。并且界面总是感觉渲染延迟。要白一下再显示结果
[或者可以直接贴源代码]
预期结果 像之前一样正常,不报错,不白屏再显示
实际结果 如问题描述
系统信息:
- 发行平台: ANDROID
- 操作系统 Mac Android 7.0
- HBuilderX版本 3.2.12.20211029
- uni-app版本 [如使用Vue-cli创建/运行项目,则提供
npm run info的运行结果] ` node node_modules/@dcloudio/vue-cli-plugin-uni/commands/info.js
uni-app v3.2.2 uni-app cli v2.0.0-32220210818002 `
补充信息 测试项目地址: https://ext.dcloud.net.cn/plugin?id=1860
补充一下全面的依赖信息,执行:npm run info
@zhetengbiji
uni-app v3.2.2
uni-app cli v2.0.0-32220210818002
Environment Info:
System:
OS: macOS Sierra 10.12.6
CPU: (4) x64 Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
Binaries:
Node: 12.0.0 - ~/.nvm/versions/node/v12.0.0/bin/node
Yarn: Not Found
npm: 6.9.0 - ~/.nvm/versions/node/v12.0.0/bin/npm
Browsers:
Chrome: 95.0.4638.69
Firefox: Not Found
Safari: 12.1
npmPackages:
@dcloudio/types: ^2.5.8 => 2.5.8
@dcloudio/uni-app-plus: ^2.0.0-32320210825 => 2.0.0-32220210818002
@dcloudio/uni-app-plus-nvue: 0.0.1
@dcloudio/uni-app-plus-nvue-v8: 0.0.1
@dcloudio/uni-automator: ^2.0.0-32320210825 => 2.0.0-32220210818002
@dcloudio/uni-cli-shared: ^2.0.0-32320210825 => 2.0.0-32220210818002
@dcloudio/uni-h5: ^2.0.0-32320210825 => 2.0.0-32220210818002
@dcloudio/uni-helper-json: ^1.0.13 => 1.0.13
@dcloudio/uni-migration: ^2.0.0-32320210825 => 2.0.0-32220210818002
@dcloudio/uni-mp-360: ^2.0.0-32320210825 => 2.0.0-32220210818002
@dcloudio/uni-mp-alipay: ^2.0.0-32320210825 => 2.0.0-32220210818002
@dcloudio/uni-mp-baidu: ^2.0.0-32320210825 => 2.0.0-32220210818002
@dcloudio/uni-mp-qq: ^2.0.0-32320210825 => 2.0.0-32220210818002
@dcloudio/uni-mp-toutiao: ^2.0.0-32320210825 => 2.0.0-32220210818002
@dcloudio/uni-mp-vue: ^2.0.0-32320210825 => 2.0.0-32220210818002
@dcloudio/uni-mp-weixin: ^2.0.0-32320210825 => 2.0.0-32220210818002
@dcloudio/uni-quickapp-native: ^2.0.0-32320210825 => 2.0.0-32220210818002
@dcloudio/uni-quickapp-webview: ^2.0.0-32320210825 => 2.0.0-32220210818002
@dcloudio/uni-stat: ^2.0.0-32320210825 => 2.0.0-32220210818002
@dcloudio/uni-template-compiler: ^2.0.0-32320210825 => 2.0.0-32220210818002
@dcloudio/vue-cli-plugin-hbuilderx: ^2.0.0-32320210825 => 2.0.0-32220210818002
@dcloudio/vue-cli-plugin-uni: ^2.0.0-32320210825 => 2.0.0-32220210818002
@dcloudio/vue-cli-plugin-uni-optimize: ^2.0.0-32320210825 => 2.0.0-32220210818002
@dcloudio/webpack-uni-mp-loader: ^2.0.0-32320210825 => 2.0.0-32220210818002
@dcloudio/webpack-uni-nvue-loader: 0.0.1
@dcloudio/webpack-uni-pages-loader: ^2.0.0-32320210825 => 2.0.0-32220210818002
@hap-toolkit/dsl-vue: 0.6.13
@vue/babel-helper-vue-jsx-merge-props: 1.2.1
@vue/babel-helper-vue-transform-on: 1.0.2
@vue/babel-plugin-jsx: 1.0.7
@vue/babel-plugin-transform-vue-jsx: 1.2.1
@vue/babel-preset-app: 4.5.13
@vue/babel-preset-jsx: 1.2.4
@vue/babel-sugar-composition-api-inject-h: 1.2.1
@vue/babel-sugar-composition-api-render-instance: 1.2.4
@vue/babel-sugar-functional-vue: 1.2.2
@vue/babel-sugar-inject-h: 1.2.2
@vue/babel-sugar-v-model: 1.2.3
@vue/babel-sugar-v-on: 1.2.3
@vue/cli-overlay: 4.5.13
@vue/cli-plugin-babel: ^4.5.13 => 4.5.13
@vue/cli-plugin-router: 4.5.13
@vue/cli-plugin-vuex: 4.5.13
@vue/cli-service: ^4.5.13 => 4.5.13
@vue/cli-shared-utils: 4.5.13
@vue/component-compiler-utils: 3.2.2 (3.2.2)
@vue/devtools-api: 6.0.0-beta.15
@vue/preload-webpack-plugin: 1.1.2
@vue/shared: ^3.2.11 => 3.2.11
@vue/web-component-wrapper: 1.3.0
mpvue-page-factory: 1.0.1
mpvue-template-compiler: 1.0.13
uni-h5-vue: 2.6.10
uni-mp-vue: 2.6.10
vue: ^2.6.14 => 2.6.14
vue-hot-reload-api: 2.3.4
vue-i18n: 8.25.0 => 8.25.0
vue-loader: 15.9.8 (16.5.0, 15.9.8)
vue-router: 3.0.1
vue-style-loader: 4.1.3 (4.1.3)
vue-template-compiler: ^2.6.14 => 2.6.14 (2.6.14)
vue-template-es2015-compiler: 1.9.1
vuex: ^3.6.2 => 3.6.2 (3.6.2)
npmGlobalPackages:
@vue/cli: 4.5.6
复现步骤补充全一点
您好,这个就是直接运行项目, 然后往上面滑动就出现了 @zhetengbiji
这个就是一个简单的虚拟列表界面
这个项目我下载下来看了一下,和你描述的依赖不太一致
我推测一下你的操作步骤,你确认一下是否是这样:
- CLI 创建一个示例项目
- 下载插件项目
- 替换内容到 src 目录
不好意思。贴成我准备迁入的项目了。这个项目我是直接用HBuilderX导入的案例项目,运行到手机的。没有用命令NPM。
不好意思。贴成我准备迁入的项目了。这个项目我是直接用HBuilderX导入的案例项目,运行到手机的。没有用命令NPM。
此示例之前在 App 端是否正常运行过?
不好意思。贴成我准备迁入的项目了。这个项目我是直接用HBuilderX导入的案例项目,运行到手机的。没有用命令NPM。
此示例之前在 App 端是否正常运行过?
之前正常的。 升级之后我其它项目也出现过以上的异常。但不太影响使用。 这个案例现在也是可以运行的。出现了白屏延迟和以上的异常
升级之前版本是多少?
我记不清是 3.2.9.20210927 还是 3.2.3.20210825 。都是最近升级过的
我的也有这个问题,也是用的虚拟列表,:key 用 index 的时候正常,用列表项id 时候就报错了, 例如: :key = ”item.id“ ,楼主解决了吗
还没有,等官方吧。
太难了,index 做 key 在虚拟列表上压根不适用,不符合 diff 算法的玩法,每次都要重新渲染,卡顿。希望官方您能尽快解决这个问题。
我已经放弃虚列表了。用第三方开发方案的时候有时候就像是带着脚镣在跳舞,有时候不得以要采用一些折中的方案。
https://gitee.com/weir_admin/weir-shop-uni-app 这是源代码 HBuilderX 3.4.18.20220630 一样的问题,希望引起重视。
[ERROR] : cid unmatched [object Object] 18:14:33.865 [ERROR] : TypeError: Invalid attempt to destructure non-iterable instance. 18:14:33.866 In order to be iterable, non-array objects must have a [Symbol.iterator]() method. 18:14:33.890 [ERROR] : cid unmatched [object Object] 18:14:34.865 [ERROR] : TypeError: Invalid attempt to destructure non-iterable instance. 18:14:34.865 In order to be iterable, non-array objects must have a [Symbol.iterator]() method. 18:14:34.886 [ERROR] : cid unmatched [object Object] 18:14:34.910 [ERROR] : TypeError: Invalid attempt to destructure non-iterable instance. 18:14:34.910 In order to be iterable, non-array objects must have a [Symbol.iterator]() method. 18:14:34.934 [ERROR] : cid unmatched [object Object] 18:14:34.957 [ERROR] : TypeError: Invalid attempt to destructure non-iterable instance. 18:14:34.958 In order to be iterable, non-array objects must have a [Symbol.iterator]() method. 18:14:34.981 [ERROR] : cid unmatched [object Object] 18:14:35.003 [ERROR] : TypeError: Invalid attempt to destructure non-iterable instance. 18:14:35.004 In order to be iterable, non-array objects must have a [Symbol.iterator]() method. 18:14:35.028 [ERROR] : cid unmatched [object Object] 18:14:35.052 [ERROR] : TypeError: Invalid attempt to destructure non-iterable instance. 18:14:35.052 In order to be iterable, non-array objects must have a [Symbol.iterator]() method. 18:14:35.075 [ERROR] : cid unmatched [object Object] 18:14:35.099 [ERROR] : TypeError: Invalid attempt to destructure non-iterable instance. 18:14:35.099 In order to be iterable, non-array objects must have a [Symbol.iterator]() method.