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


猜你喜欢

转载自blog.csdn.net/jj546630576/article/details/79248794