[英]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.