Skip to content

Cannot define property:__ob__ in android 5.0.2 #1995

@changexbc

Description

@changexbc

系统:android5.0.2
错误:Uncaught TypeError: Cannot define property:ob, object is not extensible
工具:babel5+webpack1.12(babel6依旧有此问题)
版本:[email protected][email protected]

在点击有路由跳转事件的元素时路由不跳转并出现如下错误(v-link和router.go都会出错):

Uncaught TypeError: Cannot define property:__ob__, object is not extensible. vue.common.js:296
def vue.common.js:296
Observer vue.common.js:1995
observe vue.common.js:2122
reactiveSetter vue.common.js:2182
_onTransitionValidated vue-router.common.js:2411
(anonymous function) vue-router.common.js:1445
step vue-router.common.js:1480
(anonymous function) vue-router.common.js:1483
deactivate vue-router.common.js:1094
step vue-router.common.js:1482
runQueue vue-router.common.js:1477
(anonymous function) vue-router.common.js:1441
step vue-router.common.js:1480
(anonymous function) vue-router.common.js:1483
(anonymous function) vue-router.common.js:1073
(anonymous function) vue-router.common.js:821
Vue._resolveComponent vue.common.js:8125
resolveAsyncComponent vue-router.common.js:819
canActivate vue-router.common.js:1065
step vue-router.common.js:1482
runQueue vue-router.common.js:1477
(anonymous function) vue-router.common.js:1440
step vue-router.common.js:1480
(anonymous function) vue-router.common.js:1483
canDeactivate vue-router.common.js:1048
step vue-router.common.js:1482
runQueue vue-router.common.js:1477
start vue-router.common.js:1439
startTransition vue-router.common.js:2370
_match vue-router.common.js:2384
onChange vue-router.common.js:2029
listener vue-router.common.js:954

刷新之后路由跳转到之前未跳转的路由
目前这个错误只在android5.0上会出现,android5.1,android4.x,ios无此问题

换回[email protected][email protected]后正常,应该vue1.0的问题

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions