报错信息:[Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.
解决方案:在vue项目中新建一个文件vue.config.js,之后添加下述代码,再次运行解决:
module.exports = {
runtimeCompiler: true
}
又或者vue.config.js文件即存在,但是不知道加什么,请看下列链接博客地址:(个人未测试,可以试试看)