简体   繁体   English

未找到此依赖项:* core-js/fn/symbol

[英]This dependency was not found: * core-js/fn/symbol

I am building Vue.js app using Vuex.我正在使用 Vuex 构建 Vue.js 应用程序。 when I build, it shows following errors.当我构建时,它显示以下错误。 I tried to fix installing npm install --save core-js/fn/symbol but no luck.我试图修复安装npm install --save core-js/fn/symbol但没有运气。 在此处输入图片说明

here my package.json file这是我的 package.json 文件

"dependencies": {
"bootstrap": "^4.5.3",
"bootstrap-vue": "^2.19.0",
"vue": "^2.6.11",
"vue-router": "^3.2.0",
"vuex": "^3.4.0"},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-router": "~4.5.0",
"@vue/cli-plugin-vuex": "~4.5.0",
"@vue/cli-service": "~4.5.0",
"node-sass": "^4.12.0",
"sass-loader": "^8.0.2",
"vue-template-compiler": "^2.6.11"}

Actually, I was following just video tutorial, but I don't see any errors in video.实际上,我只是在关注视频教程,但我在视频中没有看到任何错误。 I think this is version issue.我认为这是版本问题。 Please advise me.请建议我。 Thank you谢谢


Edit: I have also tried just npm install --save core-js but it shows same error.编辑:我也试过npm install --save core-js但它显示了同样的错误。

I had the same issue.我遇到过同样的问题。 Check the 'store/mutations.js' file to make sure that you aren't importing anything extra in your code.检查“store/mutations.js”文件以确保您没有在代码中导入任何额外内容。 When you add the reference to 'species' in the script, VSCode automatically adds an import at the top of the file that looks like this import { species } from "core-js/fn/symbol" .当您在脚本中添加对 'species' 的引用时,VSCode 会自动在文件顶部添加一个导入,类似于import { species } from "core-js/fn/symbol"

Remove that and you should be good to go.删除它,你应该很高兴。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 找不到此依赖项:* core-js/modules/es6.regexp.split - This dependency was not found: * core-js/modules/es6.regexp.split 在将 vue 2 升级到 vue 3 时,在升级 quasar 时找不到依赖关系 core-js/modules/es.typed-array.at.js - dependency not found core-js/modules/es.typed-array.at.js while upgrading quasar inside upgrading vue 2 to vue 3 Babel编译错误:找不到模块core-js / library / fn / get-iterator - Babel compile error: Cannot find module core-js/library/fn/get-iterator 在本机反应中找不到模块“core-js/fn/array/values” - Cannot find module 'core-js/fn/array/values' in react native 将Core-js与TypeScript一起使用 - using core-js with TypeScript 使用core-js自定义构建 - Custom build with core-js @types/core-js 用于动态导入“core-js/stable” - @types/core-js for a dynamic import of the "core-js/stable" 找不到模块:错误:无法解析“core-js/modules/es.error.cause.js” - Module not found: Error: Can't resolve 'core-js/modules/es.error.cause.js' Docker 在检查 core-js 依赖关系时构建反应应用程序时挂起 - Docker hangs while building react app while checking on core-js dependency 如何解决找不到模块:无法在 Material-UI 中解析“@babel/runtime/core-js/map” - How to solve Module not found: Can't resolve '@babel/runtime/core-js/map' in Material-UI
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM