Cannot read property '$createElement' of undefined
报错:
[vue-router] Failed to resolve async component render: TypeError: Cannot read property '$createElement' of undefined
解决:
原因是在“router”目录下的“index.js”文件的routes路由中,将要引入的组件“component”写成了“components”,去掉这个“s”即可。