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博客

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐