1.在网上查了一番,是core-js版本太高导致的
2.这里在babel.config.js文件里面加上presets: [ [ "@vue/app", { useBuiltIns: "entry" } ] ]就好了
module.exports = {
presets: [ [ "@vue/app", { useBuiltIns: "entry" } ] ],
plugins: [
[
"import",
{ libraryName: "ant-design-vue", libraryDirectory: "es", style: true }
]
]
}
参考文章:解决 These dependencies were not found: * core-js/modules/es6.array.fill in xxx 之类的问题_张小浪的博客-CSDN博客