当前位置:   article > 正文

core-js 报错 Module not found: Error: Can‘t resolve ‘core-js/modules/es6.symbol.js‘ in ‘D:\project\ca_usebuiltins core-js module error

usebuiltins core-js module error

yarn install 下载依赖

yarn dev 运行报错

 

  1. ERROR in ./src/components/ToAuth/index.vue?vue&type=script&lang=js& (./node_modules/babel-loader/lib/index.js?cacheDirectory=true!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/ToAuth/index.vue?vue&type=script&lang=js&) 1:0-46
  2. Module not found: Error: Can't resolve 'core-js/modules/es6.regexp.search.js' in 'D:\project\card-manage\src\components\ToAuth'
  3. @ ./src/components/ToAuth/index.vue?vue&type=script&lang=js& 1:0-191 1:207-210 1:212-400 1:212-400
  4. @ ./src/components/ToAuth/index.vue 2:0-57 3:0-52 3:0-52 10:2-8
  5. @ ./node_modules/babel-loader/lib/index.js?cacheDirectory=true!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/views/logFind/index1.vue?vue&type=script&lang=js& 8:0-55 16:4-10
  6. @ ./src/views/logFind/index1.vue?vue&type=script&lang=js& 1:0-192 1:208-211 1:213-402 1:213-402
  7. @ ./src/views/logFind/index1.vue 2:0-58 3:0-53 3:0-53 11:2-8
  8. @ ./src/router/index.js 11:19-55
  9. @ ./src/main.js 5:0-30 54:2-8
  10. ERROR in ./src/views/logFind/index1.vue?vue&type=script&lang=js& (./node_modules/babel-loader/lib/index.js?cacheDirectory=true!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/views/logFind/index1.vue?vue&type=script&lang=js&) 4:0-45
  11. Module not found: Error: Can't resolve 'core-js/modules/es6.regexp.split.js' in 'D:\project\card-manage\src\views\logFind'
  12. @ ./src/views/logFind/index1.vue?vue&type=script&lang=js& 1:0-192 1:208-211 1:213-402 1:213-402
  13. @ ./src/views/logFind/index1.vue 2:0-58 3:0-53 3:0-53 11:2-8
  14. @ ./src/router/index.js 11:19-55
  15. @ ./src/main.js 5:0-30 54:2-8
  16. ERROR in ./src/views/logFind/index1.vue?vue&type=script&lang=js& (./node_modules/babel-loader/lib/index.js?cacheDirectory=true!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/views/logFind/index1.vue?vue&type=script&lang=js&) 5:0-47
  17. Module not found: Error: Can't resolve 'core-js/modules/es7.array.includes.js' in 'D:\project\card-manage\src\views\logFind'
  18. @ ./src/views/logFind/index1.vue?vue&type=script&lang=js& 1:0-192 1:208-211 1:213-402 1:213-402
  19. @ ./src/views/logFind/index1.vue 2:0-58 3:0-53 3:0-53 11:2-8
  20. @ ./src/router/index.js 11:19-55
  21. @ ./src/main.js 5:0-30 54:2-8
  22. ERROR in ./src/views/logFind/index1.vue?vue&type=script&lang=js& (./node_modules/babel-loader/lib/index.js?cacheDirectory=true!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/views/logFind/index1.vue?vue&type=script&lang=js&) 6:0-39
  23. Module not found: Error: Can't resolve 'core-js/modules/es6.symbol.js' in 'D:\project\card-manage\src\views\logFind'
  24. @ ./src/views/logFind/index1.vue?vue&type=script&lang=js& 1:0-192 1:208-211 1:213-402 1:213-402
  25. @ ./src/views/logFind/index1.vue 2:0-58 3:0-53 3:0-53 11:2-8
  26. @ ./src/router/index.js 11:19-55
  27. @ ./src/main.js 5:0-30 54:2-8
  28. ERROR in ./src/common/js/common.js 1:0-47
  29. Module not found: Error: Can't resolve 'core-js/modules/es6.regexp.replace.js' in 'D:\project\card-manage\src\common\js'
  30. @ ./src/main.js 13:0-43 29:8-14
  31. ERROR in ./src/router/index.js 1:0-45
  32. Module not found: Error: Can't resolve 'core-js/modules/es6.regexp.match.js' in 'D:\project\card-manage\src\router'
  33. @ ./src/main.js 5:0-30 54:2-8
  34. ERROR in ./src/store/global.js 1:0-45
  35. Module not found: Error: Can't resolve 'core-js/modules/es6.regexp.split.js' in 'D:\project\card-manage\src\store'
  36. @ ./src/store/index.js 4:0-30 9:4-10
  37. @ ./src/main.js 8:0-28 55:2-7
  38. 7 errors have detailed information that is not shown.
  39. Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

输入命令npm ls core-js

 

UNMET DEPENDENCY core-js@2.6.11

  1. npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
  2. version_manage@1.0.0 D:\project\card-manage
  3. +-- UNMET DEPENDENCY @sefon/jspdf@2.5.1
  4. | +-- UNMET OPTIONAL DEPENDENCY canvg@3.0.10
  5. | | `-- UNMET OPTIONAL DEPENDENCY core-js@3.27.2
  6. | `-- UNMET OPTIONAL DEPENDENCY core-js@3.27.2
  7. +-- UNMET DEPENDENCY @simonwep/pickr@1.8.2
  8. | `-- UNMET DEPENDENCY core-js@3.25.3
  9. +-- UNMET DEPENDENCY me-utils@1.0.5
  10. | `-- UNMET DEPENDENCY core-js@3.27.0
  11. `-- UNMET DEPENDENCY snowflake-id@1.1.0
  12. `-- UNMET DEPENDENCY babel-runtime@6.26.0
  13. `-- UNMET DEPENDENCY core-js@2.6.11
  14. npm ERR! missing: @sefon/jspdf@2.5.1, required by version_manage@1.0.0
  15. npm ERR! missing: @simonwep/pickr@1.8.2, required by version_manage@1.0.0
  16. npm ERR! missing: me-utils@1.0.5, required by version_manage@1.0.0
  17. npm ERR! missing: snowflake-id@1.1.0, required by version_manage@1.0.0
  18. npm ERR! missing: core-js@3.25.3, required by @simonwep/pickr@1.8.2
  19. npm ERR! missing: core-js@3.27.0, required by me-utils@1.0.5
  20. npm ERR! missing: babel-runtime@6.26.0, required by snowflake-id@1.1.0
  21. npm ERR! missing: core-js@2.6.11, required by babel-runtime@6.26.0

单独下载core-js 

输入命令:

 cnpm install core-js@2

运行: yarn dev

运行成功

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

闽ICP备14008679号