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

  在webpack.config.js配置文件中加入下面代码,

resolve: {
        alias: {
            'vue$': 'vue/dist/vue.esm.js' //内部为正则表达式  vue结尾的
        }
    },

猜你喜欢

转载自www.cnblogs.com/laiylm/p/12539260.html