解决方法:在配置文件webpack.base.conf.js中添加
resolve: {
alias: {
'vue': 'vue/dist/vue.js'
}
}
转自:https://www.imooc.com/article/17868
参考:https://www.cnblogs.com/xiangxinhouse/p/8447507.html
https://blog.csdn.net/qq_35324453/article/details/80920344