-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[npm run dev执行报错] Error: Cannot call .tap() on a plugin that has not yet been defined. Call plugin('preload-index').use(<Plugin>) first #3948
Comments
请试着使用 |
笑了,现在迁移到vue3又出现了这个错误,搜索的时候搜到了当初的回答。 |
今天想给项目升级至vue2.7 然后run dev的时候爆了这个错误....问题是 我输入
所以你后来放弃了么 |
'I've received your email and will will reply to you as soon as possible after the vacation.————————————This is an auto reply email from QQ Mail.'
|
是的。我后面回退版本了。 |
经过几天的调试,以下是我的更新vue2.7的依赖包,没有大的Error。 个人认为如果你只是喜欢组合式api升级到2.7就好了,如果刚需vue3的可以考虑换框架了,这个库已经没人维护了,强行升级,你成本高,团队成本也高。 更改版本后需要删除本地依赖缓存和 package.json "dependencies": {
"axios": "1.4.0",
"clipboard": "2.0.4",
"codemirror": "5.58.2",
"core-js": "3.6.5",
"driver.js": "0.9.5",
"dropzone": "5.5.1",
"echarts": "5.4.3",
"element-ui": "2.13.0",
"file-saver": "2.0.1",
"flv.js": "^1.6.2",
"fuse.js": "3.4.4",
"js-cookie": "2.2.0",
"jsonlint": "1.6.3",
"jszip": "3.8.0",
"mapvgl": "^1.0.0-beta.172",
"mqtt": "^4.3.7",
"normalize.css": "7.0.0",
"nprogress": "0.2.0",
"path-to-regexp": "2.4.0",
"screenfull": "4.2.0",
"sortablejs": "1.8.4",
"three": "^0.148.0",
"vue": "2.7.8",
"vue-baidu-map": "^0.21.22",
"vue-count-to": "1.0.13",
"vue-router": "3.0.2",
"vue-splitpane": "1.0.4",
"vuedraggable": "2.20.0",
"vuex": "3.1.0",
"xlsx": "0.16.0"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^4.5.18",
"@vue/cli-plugin-eslint": "^5.0.8",
"@vue/cli-plugin-unit-jest": "^4.5.18",
"@vue/cli-service": "^4.5.18",
"@vue/test-utils": "1.0.0-beta.29",
"autoprefixer": "9.5.1",
"babel-eslint": "10.1.0",
"babel-jest": "23.6.0",
"babel-plugin-dynamic-import-node": "2.3.3",
"chalk": "2.4.2",
"chokidar": "2.1.5",
"connect": "3.6.6",
"eslint": "^7.5.0",
"eslint-plugin-vue": "^8.7.1",
"html-webpack-plugin": "3.2.0",
"husky": "1.3.1",
"lint-staged": "8.1.5",
"mockjs": "1.0.1-beta3",
"plop": "2.3.0",
"runjs": "4.3.2",
"sass": "1.26.2",
"sass-loader": "8.0.2",
"script-ext-html-webpack-plugin": "2.1.3",
"script-loader": "^0.7.2",
"serve-static": "1.13.2",
"svg-sprite-loader": "4.1.3",
"svgo": "1.2.0",
"webpack": "^4.46.0"
}, eslint.js
vue.config
前端的互相依赖真是个老大难的问题,各种项目每次install都会跳一大堆warning之类的,不知道什么时候会解决。 |
npm run dev
my package.json
"dependencies": {
"axios": "0.18.1",
"core-js": "3.6.5",
"echarts": "^4.9.0",
"element-ui": "2.13.2",
"html2canvas": "^1.0.0-rc.7",
"jquery": "^3.6.0",
"less": "^3.12.2",
"less-loader": "^7.0.2",
"js-cookie": "2.2.0",
"normalize.css": "7.0.0",
"nprogress": "0.2.0",
"path-to-regexp": "2.4.0",
"vue": "2.6.10",
"vue-router": "3.0.6",
"vuex": "3.1.0",
"vue-simple-uploader": "^0.7.6",
"postcss-loader": "4.2.0",
"postcss-pxtorem": "5.1.1"
},
"devDependencies": {
"@vue/cli-plugin-babel": "4.4.4",
"@vue/cli-plugin-eslint": "4.4.4",
"@vue/cli-plugin-unit-jest": "4.4.4",
"@vue/cli-service": "4.4.4",
"@vue/test-utils": "1.0.0-beta.29",
"autoprefixer": "9.5.1",
"babel-eslint": "10.1.0",
"babel-jest": "23.6.0",
"babel-plugin-dynamic-import-node": "2.3.3",
"chalk": "2.4.2",
"connect": "3.6.6",
"eslint": "6.7.2",
"eslint-plugin-vue": "^6.2.2",
"html-webpack-plugin": "3.2.0",
"mockjs": "1.0.1-beta3",
"postcss-pxtorem": "^5.1.1",
"runjs": "4.3.2",
"sass": "1.26.8",
"sass-loader": "8.0.2",
"script-ext-html-webpack-plugin": "2.1.3",
"serve-static": "1.13.2",
"svg-sprite-loader": "4.1.3",
"svgo": "1.2.2",
"vue-template-compiler": "2.6.10"
The text was updated successfully, but these errors were encountered: