Kar*_*oul 13 javascript vue.js vuejs2 vuejs3
我在我的项目中使用 Vuexy Dashboard,Vuexy 是随 Vue 2 一起提供的,所以我尝试将其升级到 Vue 3,在修复了一些错误后,我陷入了困境,非常感谢任何帮助。谢谢。这是我的 package.json 文件:
{
"name": "vuexy-vuejs-react-html-laravel-admin-dashboard-template",
"version": "6.4.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve --skip-plugins @vue/cli-plugin-eslint",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"@casl/ability": "4.1.6",
"@casl/vue": "1.1.1",
"@vue/cli-plugin-eslint": "^5.0.4",
"@vue/compat": "^3.1.0-0",
"@vue/composition-api": "^1.6.1",
"@vueuse/core": "4.0.0",
"animate.css": "4.1.1",
"apexcharts": "^3.35.2",
"assert": "^2.0.0",
"axios": "^0.27.2",
"axios-mock-adapter": "1.19.0",
"bootstrap": "4.6.0",
"bootstrap-vue": "2.21.1",
"buffer": "^6.0.3",
"chart.js": "2.9.4",
"core-js": "3.8.1",
"echarts": "4.8.0",
"jsonwebtoken": "8.5.1",
"leaflet": "1.6.0",
"portal-vue": "2.1.7",
"postcss-rtl": "1.7.3",
"prismjs": "^1.28.0",
"stream": "0.0.2",
"swiper": "5.4.5",
"uuid": "8.3.2",
"vue-perfect-scrollbar": "0.2.1",
"vue-prism-component": "1.1.1",
"vue-quill-editor": "3.0.6",
"vue-ripple-directive": "2.0.1",
"vue-router": "3.4.9",
"vue-select": "3.11.2",
"vue-slider-component": "3.2.11",
"vue-sweetalert2": "4.1.1",
"vue-toastification": "1.7.8",
"vue-tour": "1.5.0",
"vue-tree-halower": "1.8.3",
"vue2-leaflet": "2.5.2",
"vuedraggable": "2.24.3",
"vuex": "3.6.0"
},
"devDependencies": {
"@babel/core": "^7.12.16",
"@babel/eslint-parser": "^7.12.16",
"@vue/cli-plugin-babel": "^5.0.4",
"@vue/cli-plugin-router": "^5.0.4",
"@vue/cli-plugin-vuex": "^5.0.4",
"@vue/cli-service": "^5.0.4",
"@vue/compiler-sfc": "^3.1.0-0",
"@vue/eslint-config-airbnb": "^6.0.0",
"@vuepress/plugin-medium-zoom": "^1.7.1",
"eslint": "^7.32.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-vue": "^8.0.3",
"eslint-plugin-vuejs-accessibility": "^1.1.1",
"sass": "1.32.*",
"sass-loader": "^10.1.0"
}
}
Run Code Online (Sandbox Code Playgroud)
这些是我在运行 npm runserve 时遇到的错误:
ERROR in ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js 1:0-43
Module not found: Error: Can't resolve 'core-js/modules/es.error.cause.js' in 'Desktop\consigliere-vue-laravel\e-commerce\frontend\node_modules\@babel\runtime\helpers\esm'
Run Code Online (Sandbox Code Playgroud)
Gus*_*l C 19
经过大量搜索后,我在这篇博客文章中找到了对我有用的内容:
https://blog.csdn.net/Missbelover/article/details/123221351
基本上,你需要做的是......
node_modules
依赖项。npm rm -rf node_modules
Run Code Online (Sandbox Code Playgroud)
core-js
先安装。npm install --save core-js
Run Code Online (Sandbox Code Playgroud)
npm install
yarn install
Run Code Online (Sandbox Code Playgroud)
之后一切都应该按预期工作,至少对我来说现在正在工作。
祝你有美好的一天!
归档时间: |
|
查看次数: |
15426 次 |
最近记录: |