在webpack中引入vue出现:vue.runtime.esm.js:623 [Vue warn]: You are using the runtime-only build of Vue.....

完整的错误信息:

vue.runtime.esm.js:623 [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.config.js中配置如下内容:

	resolve:{
        alias:{
            'vue$':'vue/dist/vue.esm.js'
        }
    }

 修改后即可。

 


版权声明:本文为qq_43592296原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。