对于core-js相关的报错 core-js/modules/es.array.push.js in ./node_modules/.store/@babel+runtime@7.24.0/node_modules/@babel/runtime/helpers/construct.js
These dependencies were not found: * core-js/modules/es.array.push.js in ./node_modules/.store/@babel+runtime@7.24.0/node_modules/@babel/runtime/helpers/construct.js, ./node_modules/.store/@babel+runtime@7.24.0/node_modules/@babel/runtime/helpers/esm/objectSpread2.js and 21 others * core-js/modules/es.error.cause.js in ./node_modules/.store/@babel+runtime@7.24.0/node_modules/@babel/runtime/helpers/wrapNativeSuper.js, ./node_modules/.store/@babel+runtime@7.24.0/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js and 7 others * core-js/modules/es.object.proto.js in ./node_modules/.store/@babel+runtime@7.24.0/node_modules/@babel/runtime/helpers/setPrototypeOf.js, ./node_modules/.store/@babel+runtime@7.24.0/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js * core-js/modules/es.reflect.to-string-tag.js in ./node_modules/.store/@babel+runtime@7.24.0/node_modules/@babel/runtime/helpers/construct.js * core-js/modules/es.regexp.dot-all.js in ./node_modules/.store/highlight.js@11.9.0/node_modules/highlight.js/lib/core.js, ./node_modules/.store/highlight.js@11.9.0/node_modules/highlight.js/lib/languages/latex.js and 3 others * core-js/modules/web.atob.js in ./src/utils/base64Util.js * core-js/modules/web.btoa.js in ./src/utils/base64Util.js * core-js/modules/web.dom-exception.constructor.js in ./src/utils/base64Util.js * core-js/modules/web.dom-exception.stack.js in ./src/utils/base64Util.js * core-js/modules/web.dom-exception.to-string-tag.js in ./src/utils/base64Util.js * core-js/modules/web.url-search-params.delete.js in ./src/utils/downImg.js, ./node_modules/.store/cache-loader@4.1.0/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/.store/babel-loader@8.3.0/node_modules/babel-loader/lib!./node_modules/.store/cache-loader@4.1.0/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib??vue-loader-options!./src/views/contentMgt/articleMgt/ArticleForm.vue?vue&type=script&lang=js * core-js/modules/web.url-search-params.has.js in ./src/utils/downImg.js, ./node_modules/.store/cache-loader@4.1.0/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/.store/babel-loader@8.3.0/node_modules/babel-loader/lib!./node_modules/.store/cache-loader@4.1.0/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib??vue-loader-options!./src/views/contentMgt/articleMgt/ArticleForm.vue?vue&type=script&lang=js * core-js/modules/web.url-search-params.size.js in ./src/utils/downImg.js, ./node_modules/.store/cache-loader@4.1.0/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/.store/babel-loader@8.3.0/node_modules/babel-loader/lib!./node_modules/.store/cache-loader@4.1.0/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib??vue-loader-options!./src/views/contentMgt/articleMgt/ArticleForm.vue?vue&type=script&lang=js * svg-baker-runtime/browser-symbol in ./src/icons/svg/zip.svg
运行项目提示以上问题解决方法:
1、对于core-js相关的报错,我的package.json中的core-js版本是3.6.5,解决办法是将这个package.json中的core-js删掉,node_modules里面core-js相关的文件夹删掉,terminal执行命令:
cnpm i core-js
2.然后执行
cnpm i svg-baker-runtime --save
3.再运行项目即可