当前位置:   article > 正文

These dependencies were not found:core-js_these dependencies were not found: * core-js

these dependencies were not found: * core-js

These dependencies were not found:

* core-js/modules/es.array.concat.js in ./src/api/acl/role.js, ./src/api/product/attr.js and 3 others

* core-js/modules/es.array.filter.js in ./node_modules/_@babel_runtime@7.17.2@@babel/runtime/helpers/esm/objectSpread2.js

已解决:在babel.config.js中添加presets: [ [ "@vue/app", { useBuiltIns: "entry" } ] ]

如下图所在位置

  1. * module.exports = {
  2. * presets: [
  3. * // https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
  4. * '@vue/cli-plugin-babel/preset'
  5. * ],
  6. * 'env': {
  7. * 'development': {
  8. * // babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
  9. * // This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
  10. * // https://panjiachen.github.io/vue-element-admin-site/guide/advanced/lazy-loading.html
  11. * 'plugins': ['dynamic-import-node']
  12. * }
  13. * },
  14. * presets: [ [ "@vue/app", { useBuiltIns: "entry" } ] ]
  15. * }

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/爱喝兽奶帝天荒/article/detail/796899
推荐阅读
相关标签
  

闽ICP备14008679号