webpack搭建项目You are using the runtime-only build of Vue where the template compiler is not available.
@自己使用webpack搭建项目运行环境出现## You are using the runtime-only build of Vue where the template compiler is not available.问题
报错原因
当你在项目中以这种方式导入vue时
import Vue from 'vue';
你希望项目中使用的是node_modules/vue/dist/vue.js文件
但是在最新版的Vue中,项目默认导入的是node_modules/vue/dist/vue.esm.j
原创
2020-07-27 12:35:53 ·
236 阅读 ·
0 评论