5***@qq.com
5***@qq.com
  • 发布:2019-04-29 20:10
  • 更新:2020-03-31 12:01
  • 阅读:8584

uni-app运行时报错,实在是不晓得什么问题,来自一位后端转前端的萌新。

分类:uni-app

问题1:
20:01:27.506 [Vue warn]: Property or method "item" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.
20:01:27.526 01:37.089 9033 9061 I console :
20:01:27.546 01:37.089 9033 9061 I console : (found in pages/giftsDetail/giftsDetail)ERROR
20:01:27.567 [Vue warn]: Error in render: "TypeError: undefined is not an object (evaluating '_vm.item.click')"
20:01:27.588 01:37.089 9033 9061 I console :
20:01:27.608 01:37.089 9033 9061 I console : (found in pages/giftsDetail/giftsDetail)__ERROR
20:01:27.629 TypeError: undefined is not an object (evaluating '_vm.item.click')
ERROR
20:01:27.650 [Vue warn]: Property or method "item" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.
20:01:27.670 01:37.138 9033 9061 I console :
20:01:27.690 01:37.138 9033 9061 I console : (found in pages/giftsDetail/giftsDetail)ERROR
20:01:27.711 [Vue warn]: Error in render: "TypeError: undefined is not an object (evaluating '_vm.item.click')"
20:01:27.732 01:37.138 9033 9061 I console :
20:01:27.752 01:37.138 9033 9061 I console : (found in pages/giftsDetail/giftsDetail)__ERROR
20:01:27.773 TypeError: undefined is not an object (evaluating '_vm.item.click')
ERROR
问题2:
For developer:Do not set same key "[object Object]" in wx:key. at uniapp://ready:1
问题3:
20:17:43.152 thirdScriptError
20:17:43.173 Event Handler Error @ pages/setCenter/setCenter#handleEvent
20:17:43.193 17:52.727 14654 14679 I console : (global function):8255:28
20:17:43.235 17:52.727 14654 14679 I console : (global function):8250:26
20:17:43.275 17:52.727 14654 14679 I console : handleEvent@(global function):8240:20
20:17:43.296 17:52.727 14654 14679 I console : safeCallback@(global function):8:424232
20:17:43.317 17:52.727 14654 14679 I console : (global function):8:564953
20:17:43.337 17:52.727 14654 14679 I console : (global function):8:568181
20:17:43.358 17:52.727 14654 14679 I console : (global function):8:567455
20:17:43.378 17:52.727 14654 14679 I console : n@(global function):8:171427
20:17:43.398 17:52.727 14654 14679 I console : subscribeHandler@(global function):8:1563
20:17:43.419 17:52.727 14654 14679 I console : (global function):7:77316
20:17:43.440 17:52.727 14654 14679 I console : (global function):7:77337
20:17:43.461 17:52.727 14654 14679 I console : B@(global function):7:4462
20:17:43.481 17:52.727 14654 14679 I console : (global function):7:79806
20:17:43.504 17:52.727 14654 14679 I console : consume@(weex framework):1:19850
20:17:43.543 17:52.727 14654 14679 I console : (weex framework):1:177648__ERROR

2019-04-29 20:10 负责人:无 分享
已邀请:
善哉

善哉

问题1 和 问题2 我也遇到了, 问题1 好像是在组件里使用点击事件并传参时报的参数 undefined; 问题2一脸懵逼

  • 善哉

    我这解决了,

    问题2:

    For developer:Do not set same key "[object Object]" in wx:key. at uniapp://ready:1

    解决方式:v-for里的值不能和:key的值相同

    问题1:组件中的v-for中项的点击事件参数报undefined

    解决方式同1

    2019-05-15 14:24

  • 2***@qq.com

    回复 善哉: 问题3呢?

    2019-05-17 15:44

没得好名字

没得好名字 - 90后前端妹子一枚

undefined is not an object 请问这个问题该怎么修改?是什么原因。我就是组件之前传参数报的错

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