前端错误经验
星空守望
这个作者很懒,什么都没留下…
展开
-
Vue: caught TypeError: Cannot set property 'app' of undefined at VueRouter (vue-router.js:2430)
今天在写Vue的时候,遇到了标题所示的错误,找了半天也没找出来,我就纳闷了,为什么app是undefied,我明明定义了的呀?先看错误代码。 const router = VueRouter({ routes: [ { path: '/user/:id', component: User, children: [ { // 当/user/:id/...原创 2018-09-27 13:41:08 · 5097 阅读 · 8 评论 -
[BScroll warn]: Can not resolve the wrapper DOM. Vue better-scroll
在用vue的better-scroll插件的时候遇到了这个错误,具体如下 [BScroll warn]: Can not resolve the wrapper DOM. Vue better-scroll [Vue warn]: Error in mounted hook: “TypeError: Cannot read property ‘children’ of undefined” 怎...原创 2018-10-20 15:42:05 · 11368 阅读 · 6 评论