VUE路由初始化 Cannot read property '$createElement' of undefined

记录一下学习日志,免得再犯这种低级错误

VUE 

Router初始化报错,Cannot read property '$createElement' of undefined

//设置路由

const router =new VueRouter({

mode:'history',

base:__dirname,

routes:[

{path:"/",components:Users},

{path:"/test",components:Test}

]

})

百度一下,是因为是component

你可能感兴趣的:(VUE路由初始化 Cannot read property '$createElement' of undefined)