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

yarn install 下载依赖

yarn dev 运行报错

 


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
Module not found: Error: Can't resolve 'core-js/modules/es6.regexp.search.js' in 'D:\project\card-manage\src\components\ToAuth'
 @ ./src/components/ToAuth/index.vue?vue&type=script&lang=js& 1:0-191 1:207-210 1:212-400 1:212-400
 @ ./src/components/ToAuth/index.vue 2:0-57 3:0-52 3:0-52 10:2-8
 @ ./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
 @ ./src/views/logFind/index1.vue?vue&type=script&lang=js& 1:0-192 1:208-211 1:213-402 1:213-402
 @ ./src/views/logFind/index1.vue 2:0-58 3:0-53 3:0-53 11:2-8
 @ ./src/router/index.js 11:19-55
 @ ./src/main.js 5:0-30 54:2-8

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
Module not found: Error: Can't resolve 'core-js/modules/es6.regexp.split.js' in 'D:\project\card-manage\src\views\logFind'
 @ ./src/views/logFind/index1.vue?vue&type=script&lang=js& 1:0-192 1:208-211 1:213-402 1:213-402
 @ ./src/views/logFind/index1.vue 2:0-58 3:0-53 3:0-53 11:2-8
 @ ./src/router/index.js 11:19-55
 @ ./src/main.js 5:0-30 54:2-8

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
Module not found: Error: Can't resolve 'core-js/modules/es7.array.includes.js' in 'D:\project\card-manage\src\views\logFind'
 @ ./src/views/logFind/index1.vue?vue&type=script&lang=js& 1:0-192 1:208-211 1:213-402 1:213-402
 @ ./src/views/logFind/index1.vue 2:0-58 3:0-53 3:0-53 11:2-8
 @ ./src/router/index.js 11:19-55
 @ ./src/main.js 5:0-30 54:2-8

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
Module not found: Error: Can't resolve 'core-js/modules/es6.symbol.js' in 'D:\project\card-manage\src\views\logFind'
 @ ./src/views/logFind/index1.vue?vue&type=script&lang=js& 1:0-192 1:208-211 1:213-402 1:213-402
 @ ./src/views/logFind/index1.vue 2:0-58 3:0-53 3:0-53 11:2-8
 @ ./src/router/index.js 11:19-55
 @ ./src/main.js 5:0-30 54:2-8

ERROR in ./src/common/js/common.js 1:0-47
Module not found: Error: Can't resolve 'core-js/modules/es6.regexp.replace.js' in 'D:\project\card-manage\src\common\js'
 @ ./src/main.js 13:0-43 29:8-14

ERROR in ./src/router/index.js 1:0-45
Module not found: Error: Can't resolve 'core-js/modules/es6.regexp.match.js' in 'D:\project\card-manage\src\router'
 @ ./src/main.js 5:0-30 54:2-8

ERROR in ./src/store/global.js 1:0-45
Module not found: Error: Can't resolve 'core-js/modules/es6.regexp.split.js' in 'D:\project\card-manage\src\store'
 @ ./src/store/index.js 4:0-30 9:4-10
 @ ./src/main.js 8:0-28 55:2-7

7 errors have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

输入命令npm ls core-js

 

UNMET DEPENDENCY core-js@2.6.11

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!
version_manage@1.0.0 D:\project\card-manage
+-- UNMET DEPENDENCY @sefon/jspdf@2.5.1
| +-- UNMET OPTIONAL DEPENDENCY canvg@3.0.10
| | `-- UNMET OPTIONAL DEPENDENCY core-js@3.27.2
| `-- UNMET OPTIONAL DEPENDENCY core-js@3.27.2
+-- UNMET DEPENDENCY @simonwep/pickr@1.8.2
| `-- UNMET DEPENDENCY core-js@3.25.3
+-- UNMET DEPENDENCY me-utils@1.0.5
| `-- UNMET DEPENDENCY core-js@3.27.0
`-- UNMET DEPENDENCY snowflake-id@1.1.0
  `-- UNMET DEPENDENCY babel-runtime@6.26.0
    `-- UNMET DEPENDENCY core-js@2.6.11

npm ERR! missing: @sefon/jspdf@2.5.1, required by version_manage@1.0.0
npm ERR! missing: @simonwep/pickr@1.8.2, required by version_manage@1.0.0
npm ERR! missing: me-utils@1.0.5, required by version_manage@1.0.0
npm ERR! missing: snowflake-id@1.1.0, required by version_manage@1.0.0
npm ERR! missing: core-js@3.25.3, required by @simonwep/pickr@1.8.2
npm ERR! missing: core-js@3.27.0, required by me-utils@1.0.5
npm ERR! missing: babel-runtime@6.26.0, required by snowflake-id@1.1.0
npm ERR! missing: core-js@2.6.11, required by babel-runtime@6.26.0

单独下载core-js 

输入命令:

 cnpm install core-js@2

运行: yarn dev

运行成功

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值