1.把全局包升级到最新
+-- @vue/cli@4.1.1
+-- @vue/cli-service@4.1.1
+-- @vue/cli-service-global@4.1.1
2.然后把项目的cli包也配置成最新版本,终于从坑里面爬回地表了
"dependencies": {
"@dcloudio/uni-app-plus": "^2.0.0-24220191115006",
"@dcloudio/uni-h5": "^2.0.0-24220191115006",
"@dcloudio/uni-helper-json": "*",
"@dcloudio/uni-mp-alipay": "^2.0.0-24220191115006",
"@dcloudio/uni-mp-baidu": "^2.0.0-24220191115006",
"@dcloudio/uni-mp-qq": "^2.0.0-24220191115006",
"@dcloudio/uni-mp-toutiao": "^2.0.0-24220191115006",
"@dcloudio/uni-mp-weixin": "^2.0.0-24220191115006",
"@dcloudio/uni-stat": "^2.0.0-24220191115006",
"flyio": "^0.6.14",
"regenerator-runtime": "^0.13.3",
"vue": "^2.6.10",
"vuex": "^3.0.1",
},
"devDependencies": {
"@dcloudio/uni-cli-shared": "^2.0.0-24220191115006",
"@dcloudio/uni-template-compiler": "^2.0.0-24220191115006",
"@dcloudio/vue-cli-plugin-hbuilderx": "^2.0.0-24220191115006",
"@dcloudio/vue-cli-plugin-uni": "^2.0.0-24220191115006",
"@dcloudio/vue-cli-plugin-uni-optimize": "^2.0.0-24220191115006",
"@dcloudio/webpack-uni-mp-loader": "^2.0.0-24220191115006",
"@dcloudio/webpack-uni-pages-loader": "^2.0.0-24220191115006",
"@types/html5plus": "^1.0.0",
"@types/uni-app": "^1.4.1",
"@vue/cli-plugin-babel": "^3.12.1",
"@vue/cli-service": "^3.12.1",
"babel-plugin-import": "^1.11.0",
"mini-types": "*",
"miniprogram-api-typings": "^2.8.0-2",
"node-sass": "^4.13.0",
"postcss-comment": "^2.0.0",
"sass-loader": "^8.0.0",
"vue-template-compiler": "^2.6.10"
},
拓荒
我也遇到了,鼓捣了一上午,唉!
2019-12-06 15:41