5***@qq.com
5***@qq.com
  • 发布:2020-06-15 21:30
  • 更新:2020-12-05 10:37
  • 阅读:4147

更新V3后报错

分类:uni-app
v3

v3确实好用,但是现在有一个主要界面就报一串这个错误,有同样有这种问题的小伙伴给点建议,看从哪方面去排查问题。

cid unmatched [object Object]
TypeError: Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.
cid unmatched [object Object]
TypeError: Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.
cid unmatched [object Object]
TypeError: Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.
Not found -1,21
TypeError: null is not an object (evaluating 'ret[0].width') __ERROR

2020-06-15 21:30 负责人:无 分享
已邀请:
DCloud_heavensoft

DCloud_heavensoft

升级HBuilderX 2.7.5,即v3后,App端遇到兼容问题的,请注意查看升级注意事项:https://ask.dcloud.net.cn/article/37342

m***@vcgroup.cn

m***@vcgroup.cn

我也是遇到这个问题 请问作者解决了吗

2***@qq.com

2***@qq.com

我也碰到这种问题,楼主是怎么解决的?

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

    看看自己封装的组件里面有没有初始值设置为null的,只要有的,都要改成对应的类型, 比如数组就初始化为 arr:[]

    2020-08-29 14:30

  • 1***@163.com

    回复 5***@qq.com: 改了也没用额

    2020-10-28 18:23

7***@qq.com

7***@qq.com - 谁说学机械的将来只能画图纸了,我也有自己的梦想。

请问是怎么解决的

w***@163.com

w***@163.com

请求接口出来的数据是{obj1:{},obj2:{},obj3:{obj3_child:{text:''}}}
渲染时写的是 {{obj3.obj3_child.text }}

解决方式是把obj3重新赋值给一个变量 this.objList3 = obj3 然后渲染是 {{objList3.text}}
就不报错了

各位 我们遇到的情况可能不一样

该问题目前已经被锁定, 无法添加新回复