8***@qq.com
8***@qq.com
  • 发布:2022-08-07 22:19
  • 更新:2023-06-26 11:17
  • 阅读:1485

【报Bug】最新版本使用uni-data-select组件出现报错

分类:HBuilderX

产品分类: HbuilderX

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: Windows 11 教育版

HBuilderX版本号: 3.5.3

操作步骤:

预期结果:

正常展现

实际结果:

异常报错

bug描述:

TypeError: Cannot read property 'length' of undefined
at http://localhost:8080/static/js/pages-ucenter-regist-regist.js:2274:124606
at Object.<anonymous> (http://localhost:8080/static/js/pages-ucenter-regist-regist.js:2274:125311)
at Object.qf9q (http://localhost:8080/static/js/pages-ucenter-regist-regist.js:2275:30)
at webpack_require (http://localhost:8080/static/js/index.js:854:30)
at fn (http://localhost:8080/static/js/index.js:151:20)
at eval (webpack-internal:///s50C:224:41)
at Object.s50C (http://localhost:8080/static/js/pages-ucenter-regist-regist.js:2318:1)
at
webpack_require
(http://localhost:8080/static/js/index.js:854:30)
at fn (http://localhost:8080/static/js/index.js:151:20)
at eval (webpack-internal:///pSkt:2:1023)
22:18:46.293 [Vue warn]: Failed to resolve async component: function (resolve) {
var component = {
component: Promise.all(/! require.ensure | pages-ucenter-regist-regist /[webpack_require.e("pages-course-course~pages-index-index~pages-news-category-category~pages-news-detail-detail~pages-uc~65d594d7"), webpack_require.e("pages-course-detail-detail~pages-news-detail-detail~pages-ucenter-message-detail-detail~pages-ucente~173536c8"), webpack_require.e("pages-ucenter-capture-capture~pages-ucenter-forget-forget~pages-ucenter-login-login~pages-ucenter-re~26ddf6ed"), webpack_require.e("pages-ucenter-regist-regist")]).then((function () {return resolve(webpack_require(/! D:/php/peoject/xxxx/sc-edu-training-cadre-h5/pages/ucenter/regist/regist.vue / "JRws"));}).bind(null, webpack_require)).catch(__webpack_require.oe),
delay:
uniConfig['async'].delay,
timeout: __uniConfig['async'].timeout };

if (uniConfig['async']['loading']) {
component.loading = {
name: 'SystemAsyncLoading',
render: function render(createElement) {
return createElement(
uniConfig['async']['loading']);
} };

}
if (uniConfig['async']['error']) {
component.error = {
name: 'SystemAsyncError',
render: function render(createElement) {
return createElement(
uniConfig['async']['error']);
} };

}
return component;
}
Reason: TypeError: Cannot read property 'length' of undefined

2022-08-07 22:19 负责人:无 分享
已邀请:
1***@163.com

1***@163.com

同遇见类似问题

  • 8***@qq.com (作者)

    你把hbuilder切换成上一个版本就行了,我这里切换后,自动变成了3.4.18版本

    2022-08-08 11:28

  • 我不是前端

    回复 8***@qq.com: vue-cli也有这样的问题,怎么解决

    2022-08-13 11:18

l***@126.com

l***@126.com - 前端开发

我也遇到了同样的问题,但是uni官网根本不回复 也不解决

要回复问题请先登录注册