These dependencies were not found:core-js/modules/es.array.concat in ./node_modules/cache-loader/dis

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

上一篇:javascript – 如何修复TypeError不是一个函数(使用Jest测试promise)


下一篇:Nodejs代码检测(可配合Sonar使用)