Yi2022
Yi2022
  • 发布:2022-08-11 15:49
  • 更新:2023-03-25 16:18
  • 阅读:782

uni-ui: uni-data-picker组件在macOS中报错

分类:uni-app

uni-ui: uni-data-picker组件在macOS中报错

VM342:10064 页面【uni_modules/uni-data-picker/components/uni-data-picker/uni-data-picker]错误:
TypeError: Cannot read property 'length' of undefined
at index.js?a9ff:1
at Object.<anonymous> (index.js?a9ff:1)
at Object.1044 (vendor.js:3277)
at webpack_require (null:91)
at Object.1318 (vendor.js:7069)
at
webpack_require
(null:91)
at Object._ (uni-data-picker.vue:51)
at webpack_require_ (null:91)
at Module.
(uni-data-picker.vue?5c3c:1)
at
webpack_require__ (null:91)

VM188 WAServiceMainContext.js:1 TypeError: Cannot read property 'length' of undefined
at index.js?a9ff:1
at Object.<anonymous> (index.js?a9ff:1)
at Object.1044 (vendor.js:3277)
at webpack_require (null:91)
at Object.1318 (vendor.js:7069)
at
webpack_require
(null:91)
at Object._ (uni-data-picker.vue:51)
at webpack_require_ (null:91)
at Module.
(uni-data-picker.vue?5c3c:1)
at
webpack_require__ (null:91)(env: macOS,mp,1.06.2111300; lib: 2.25.0)

在windows中可以正常运行

什么原因?

2022-08-11 15:49 负责人:无 分享
已邀请:
BoredApe

BoredApe - 有问题就会有答案。

请上传能重现问题的测试工程

  • hanyang

    组件下的示例项目在macOS下就会报错

    2022-08-17 10:08

hanyang

hanyang - 渣渣前端一枚

报错+1,下载的示例项目也会报错

  • Yi2022 (作者)

    我用mac新建的项目也是跑不起来,大佬有解决方法吗?

    2022-08-17 11:42

  • hanyang

    回复 Yi2022: 排查了一下,是uni-data-picker.js中使用了uniCloud.database导致的,注释掉之后不报错了,有什么影响未知。

    2022-08-17 14:54

Yi2022

Yi2022 (作者)

manifest.json中重新获取一下uni-app应用标识又可以了

随便起1

随便起1

同样的问题 我单独去网站上重装一下 组件 就OK了

5***@qq.com

5***@qq.com

这个组件现在就不能正常用,选项就不显示

要回复问题请先登录注册