Vue Error:You are using the runtime-only build of Vue where the template compiler is not available
解决方案
在webpack.config.js
中配置:
module.exports = {
// ...
resolve: {
"extensions": ['.ts', '.js', '.json', '.css'],
alias: {
vue$: "vue/dist/vue.esm.js", // 增加这个说明
}
},
// ...
}
增加上述别名的那句话就好了。