详细问题描述
uniapp引入vant会报错
49:18.187 Could not resolve "@babel/runtime-corejs2/helpers/esm/extends" in file D:\demouniapp\demouniapp\node_modules\vant\es\button\index.js.
11:49:18.217 Could not resolve "@babel/runtime-corejs2/helpers/esm/extends" in file D:\demouniapp\demouniapp\node_modules\vant\es\area\index.js.
11:49:18.847 Could not resolve "@babel/runtime-corejs2/helpers/esm/extends" in file D:\demouniapp\demouniapp\node_modules\vant\es\cell\index.js.
11:49:18.847 Could not resolve "@babel/runtime-corejs2/helpers/esm/extends" in file D:\demouniapp\demouniapp\node_modules\vant\es\collapse-item\index.js.
11:49:18.878 Could not resolve "@babel/runtime-corejs2/helpers/esm/extends" in file
.... 大概就是提示 babel没办法编译vant下面的组件
代码复现压缩包已经上传,运行index.vue。麻烦查看一下。因为vant在上个版本已经作为项目在使用,如果此时更换vant其他组件,项目上很麻烦。