遇到的报错如图,在webpack的配置中加入Resolve配置 作用是指定模块的别名 import Vue from 'vue' ==> import Vue from 'vue/dist/vue.js'