详细问题描述
通过vue-cli创建的项目,在升级到最新的uni构建版本后npm run build:mp-weixin出现报错,npm run dev不会出现
[内容]
"dependencies": {
"@dcloudio/uni-app-plus": "0.0.253",
"@dcloudio/uni-h5": "^0.9.0",
"@dcloudio/uni-mp-alipay": "0.0.827",
"@dcloudio/uni-mp-baidu": "0.0.857",
"@dcloudio/uni-mp-qq": "0.0.112",
"@dcloudio/uni-mp-toutiao": "0.0.352",
"@dcloudio/uni-mp-weixin": "0.0.973",
"axios": "file:./src/plugin/ajax",
"flyio": "^0.6.2",
"less": "^3.10.3",
"less-loader": "^5.0.0",
"postcss-upx": "^v1.0.3",
"regenerator-runtime": "^0.12.1",
"scss": "^0.2.4",
"scss-loader": "0.0.1",
"unifly": "^1.9.4",
"vant": "^2.2.0",
"vue": "^2.6.10",
"vuex": "^3.0.1"
},
"devDependencies": {
"@dcloudio/uni-cli-shared": "^0.2.994",
"@dcloudio/uni-template-compiler": "^0.9.183",
"@dcloudio/vue-cli-plugin-hbuilderx": "latest",
"@dcloudio/vue-cli-plugin-uni": "latest",
"@dcloudio/webpack-uni-mp-loader": "^0.3.644",
"@dcloudio/webpack-uni-pages-loader": "^0.2.875",
"@types/html5plus": "*",
"@types/uni-app": "^1.4.0",
"@vue/cli-plugin-babel": "3.5.1",
"@vue/cli-service": "^3.11.0",
"babel-plugin-import": "^1.12.1",
"cross-env": "^5.2.1",
"postcss-comment": "^2.0.0",
"vue-template-compiler": "^2.6.10"
},
[期望]
不报错
IDE运行环境说明
VSCODE
版本: 1.38.0
Node.js: 10.11.0
[mac版本号]
macOS Mojave 10.14.6 (18G95)
uni-app运行环境说明
微信小程序
[运行端版本号]
微信开发工具 Stable v1.02.1907300
[项目是cli创建的还是HBuilderX创建的?如果是cli创建的,请更新到最新版cli再试]
vue-cli
[编译模式是老模板模式还是新的自定义组件模式?]
自定义组件
联系方式
296954131
2***@qq.com
朋友,你解决了吗
2021-09-03 14:07