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'
        }
    }
}


你可能感兴趣的:(vue)