Vue You are using the runtime-only build of Vue where the template compiler is not available. Either

错误警告

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.config.js 里添加

configureWebpack: {
    resolve: {
      alias: {
        'vue$': 'vue/dist/vue.esm.js'
      }
    }
  },

重启项目

猜你喜欢

转载自blog.csdn.net/qq_41494464/article/details/88017506