vue常见问题
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"
}
}
}
声明:该文观点仅代表作者本人,入门客AI创业平台信息发布平台仅提供信息存储空间服务,如有疑问请联系rumenke@qq.com。
- 上一篇: yii2 restful同一个控制器设置允许认证不允许认证方法,跨域设置
- 下一篇: vue多页面应用