再使用vue 2.0 的时候碰到的坑,日后继续跟进
今天在开发vue组件的时候在销毁的时候destoryed 的时候 出现了[Vue warn]: Error in nextTick: "TypeError: Cannot read property '__ob__' of undefined"warn @ vue.esm.js:476handleError @ vue.esm.js:559(anonymous) @ vue.esm.js:7
·
今天在开发vue组件的时候在销毁的时候destoryed 的时候 出现了
[Vue warn]: Error in nextTick: "TypeError: Cannot read property '__ob__' of undefined"
warn @ vue.esm.js:476
handleError @ vue.esm.js:559
(anonymous) @ vue.esm.js:700
nextTickHandler @ vue.esm.js:645
Promise resolved (async)
timerFunc @ vue.esm.js:660
queueNextTick @ vue.esm.js:708
queueWatcher @ vue.esm.js:2847
update @ vue.esm.js:2984
notify @ vue.esm.js:775
reactiveSetter @ vue.esm.js:997
(anonymous) @ vue-router.esm.js:2390
(anonymous) @ vue-router.esm.js:2389
updateRoute @ vue-router.esm.js:1924
(anonymous) @ vue-router.esm.js:1802
(anonymous) @ vue-router.esm.js:1911
step @ vue-router.esm.js:1649
step @ vue-router.esm.js:1656
runQueue @ vue-router.esm.js:1660
(anonymous) @ vue-router.esm.js:1906
step @ vue-router.esm.js:1649
(anonymous) @ vue-router.esm.js:1653
(anonymous) @ vue-router.esm.js:1891
(anonymous) @ vue-router.esm.js:1692
(anonymous) @ vue-router.esm.js:1760
(anonymous) @ main.js:1288
Promise resolved (async)
component @ product.js:6
(anonymous) @ vue-router.esm.js:1709
(anonymous) @ vue-router.esm.js:1736
(anonymous) @ vue-router.esm.js:1736
flatMapComponents @ vue-router.esm.js:1735
(anonymous) @ vue-router.esm.js:1671
iterator @ vue-router.esm.js:1870
step @ vue-router.esm.js:1652
step @ vue-router.esm.js:1656
(anonymous) @ vue-router.esm.js:1653
(anonymous) @ vue-router.esm.js:1891
(anonymous) @ index.js:59
iterator @ vue-router.esm.js:1870
step @ vue-router.esm.js:1652
step @ vue-router.esm.js:1656
runQueue @ vue-router.esm.js:1660
confirmTransition @ vue-router.esm.js:1899
transitionTo @ vue-router.esm.js:1801
push @ vue-router.esm.js:2099
push @ vue-router.esm.js:2416
navActive @ navi.vue:26
boundFn @ vue.esm.js:179
invoker @ vue.esm.js:1821
Vue.$emit @ vue.esm.js:2331
(anonymous) @ iview.js:13709
Vue.$emit @ vue.esm.js:2331
dispatch @ iview.js:514
boundFn @ vue.esm.js:178
(anonymous) @ iview.js:13865
Vue.$emit @ vue.esm.js:2331
dispatch @ iview.js:514
boundFn @ vue.esm.js:178
handleClick @ iview.js:13568
boundFn @ vue.esm.js:179
click @ iview.js:20221
invoker @ vue.esm.js:1821
vue.esm.js:563 TypeError: Cannot read property '__ob__' of undefined
at VueComponent.Vue.$destroy (vue.esm.js:2507)
at destroy (vue.esm.js:3608)
at invokeDestroyHook (vue.esm.js:5339)
at invokeDestroyHook (vue.esm.js:5344)
at VueComponent.patch [as __patch__] (vue.esm.js:5651)
at VueComponent.Vue.$destroy (vue.esm.js:2513)
at destroy (vue.esm.js:3608)
at invokeDestroyHook (vue.esm.js:5339)
at removeVnodes (vue.esm.js:5355)
at updateChildren (vue.esm.js:5463)
handleError @ vue.esm.js:563
(anonymous) @ vue.esm.js:700
nextTickHandler @ vue.esm.js:645
Promise resolved (async)
timerFunc @ vue.esm.js:660
queueNextTick @ vue.esm.js:708
queueWatcher @ vue.esm.js:2847
update @ vue.esm.js:2984
notify @ vue.esm.js:775
reactiveSetter @ vue.esm.js:997
(anonymous) @ vue-router.esm.js:2390
(anonymous) @ vue-router.esm.js:2389
updateRoute @ vue-router.esm.js:1924
(anonymous) @ vue-router.esm.js:1802
(anonymous) @ vue-router.esm.js:1911
step @ vue-router.esm.js:1649
step @ vue-router.esm.js:1656
runQueue @ vue-router.esm.js:1660
(anonymous) @ vue-router.esm.js:1906
step @ vue-router.esm.js:1649
(anonymous) @ vue-router.esm.js:1653
(anonymous) @ vue-router.esm.js:1891
(anonymous) @ vue-router.esm.js:1692
(anonymous) @ vue-router.esm.js:1760
(anonymous) @ main.js:1288
Promise resolved (async)
component @ product.js:6
(anonymous) @ vue-router.esm.js:1709
(anonymous) @ vue-router.esm.js:1736
(anonymous) @ vue-router.esm.js:1736
flatMapComponents @ vue-router.esm.js:1735
(anonymous) @ vue-router.esm.js:1671
iterator @ vue-router.esm.js:1870
step @ vue-router.esm.js:1652
step @ vue-router.esm.js:1656
(anonymous) @ vue-router.esm.js:1653
(anonymous) @ vue-router.esm.js:1891
(anonymous) @ index.js:59
iterator @ vue-router.esm.js:1870
step @ vue-router.esm.js:1652
step @ vue-router.esm.js:1656
runQueue @ vue-router.esm.js:1660
confirmTransition @ vue-router.esm.js:1899
transitionTo @ vue-router.esm.js:1801
push @ vue-router.esm.js:2099
push @ vue-router.esm.js:2416
navActive @ navi.vue:26
boundFn @ vue.esm.js:179
invoker @ vue.esm.js:1821
Vue.$emit @ vue.esm.js:2331
(anonymous) @ iview.js:13709
Vue.$emit @ vue.esm.js:2331
dispatch @ iview.js:514
boundFn @ vue.esm.js:178
(anonymous) @ iview.js:13865
Vue.$emit @ vue.esm.js:2331
dispatch @ iview.js:514
boundFn @ vue.esm.js:178
handleClick @ iview.js:13568
boundFn @ vue.esm.js:179
click @ iview.js:20221
invoker @ vue.esm.js:1821
具体浏览器表现出来的异常信息为
经过反复查找发现自定义的组件没有写入data(){return{}} 代码块,经过测试
发现浏览器中的异常信息没有了。
更多推荐
已为社区贡献4条内容
所有评论(0)