问题描述 //解决问题:[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.(found in <Root>) 解决方法 webpack.base.conf.js 中添加: resolve: { extensions: ['.js', '.vue', '.json',".css"], alias: { 'vue$': 'vue/dist/vue.esm.js', } }, vue.config.js 中添加: module.exports = { runtimeCompiler: true, configureWebpack: config => { config.resolve = { extensions: ['.js', '.vue', '.json', ".css"], alias: { 'vue$': 'vue/dist/vue.esm.js', } } } }