其他分享
首页 > 其他分享> > 一次尴尬的vue-router的bug. Invalid route component at extractComponentsGuards

一次尴尬的vue-router的bug. Invalid route component at extractComponentsGuards

作者:互联网

记一次bug

Error: Invalid route component at extractComponentsGuards

 

报错如上

搜报错找到的解决和我的情况不同

或许可以帮到一些人吧

 

原因是router/index.js中路由映射组件处

 

  {
    path: '/',
    name: 'Welcome',
    // components: Welcome
    component: Welcome
  }

是component而不是components

被自动补全坑了

 

标签:route,Welcome,component,Invalid,extractComponentsGuards,报错,bug
来源: https://www.cnblogs.com/Initial-C-/p/15811728.html