您的位置:首页 > 产品设计 > UI/UE

vue常见问题

2018-02-03 18:59 381 查看
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'
}
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: