[Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available.

浏览器控制的报错
[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.

解决办法

修改webpack配置,添加一个resolve
resolve: {
alias: {
'vue': 'vue/dist/vue.js'
}
}
 

猜你喜欢

转载自www.cnblogs.com/minnie-huang/p/12808295.html