[Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available
根据错误提示说明,和搜索之后得出结论:是项目引入的vue编译版本不对解决方案1build/webpack.base.conf.js并设置vue的alias别名,如下:12345resolve:{alias:{vue:'vue/dist/vue.esm.js'}}解决方案2打开src/main.js修改Vue对象初始化。123456newVue({el:'#app',router,component