您的位置:首页 > Web前端 > Vue.js

vue常见错误:vue.runtime.esm.js:574 [Vue warn]: You are using the runtime-only build of Vue where the tem

2018-12-26 13:54 776 查看

1、vue.runtime.esm.js:574 [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中添加如下配置就可以解决:
module.export{

resolve:{
alias:{
‘vue$’:‘vue/dist/vue.js’
}
}
}

作者:吕秀军
来源:CSDN
原文:https://www.geek-share.com/detail/2728655563.html
版权声明:本文为博主原创文章,转载请附上博文链接!

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐