我在执行 npx @dcloudio/uvm alpha 更新我的脚手架版本后,在hbuilderX编译没有问题,在使用 Windows PowerShell编译的时候卡住
以下是package.json文件
更新前
{
"name": "uni_vue3_vite_ts",
"version": "0.0.0",
"scripts": {
"app": "uni -p app",
"custom": "uni -p",
"h5": "uni",
"h5:ssr": "uni --ssr",
"alipay": "uni -p mp-alipay",
"baidu": "uni -p mp-baidu",
"kuaishou": "uni -p mp-kuaishou",
"lark": "uni -p mp-lark",
"qq": "uni -p mp-qq",
"toutiao": "uni -p mp-toutiao",
"weixin": "uni -p mp-weixin",
"quickapp-webview": "uni -p quickapp-webview",
"quickapp-webview-huawei": "uni -p quickapp-webview-huawei",
"quickapp-webview-union": "uni -p quickapp-webview-union",
"build:app": "uni build -p app",
"build:custom": "uni build -p",
"build:h5": "uni build",
"build:h5:ssr": "uni build --ssr",
"build:alipay": "uni build -p mp-alipay",
"build:baidu": "uni build -p mp-baidu",
"build:kuaishou": "uni build -p mp-kuaishou",
"build:lark": "uni build -p mp-lark",
"build:qq": "uni build -p mp-qq",
"build:toutiao": "uni build -p mp-toutiao",
"build:weixin": "uni build -p mp-weixin",
"build:quickapp-webview": "uni build -p quickapp-webview",
"build:quickapp-webview-huawei": "uni build -p quickapp-webview-huawei",
"build:quickapp-webview-union": "uni build -p quickapp-webview-union"
},
"dependencies": {
"@dcloudio/uni-app": "3.0.0-alpha-3050220220719002",
"@dcloudio/uni-app-plus": "3.0.0-alpha-3050220220719002",
"@dcloudio/uni-components": "3.0.0-alpha-3050220220719002",
"@dcloudio/uni-h5": "3.0.0-alpha-3050220220719002",
"@dcloudio/uni-mp-alipay": "3.0.0-alpha-3050220220719002",
"@dcloudio/uni-mp-baidu": "3.0.0-alpha-3050220220719002",
"@dcloudio/uni-mp-kuaishou": "3.0.0-alpha-3050220220719002",
"@dcloudio/uni-mp-lark": "3.0.0-alpha-3050220220719002",
"@dcloudio/uni-mp-qq": "3.0.0-alpha-3050220220719002",
"@dcloudio/uni-mp-toutiao": "3.0.0-alpha-3050220220719002",
"@dcloudio/uni-mp-weixin": "3.0.0-alpha-3050220220719002",
"@dcloudio/uni-quickapp-webview": "3.0.0-alpha-3050220220719002",
"sass": "^1.54.0",
"uview-plus": "^3.1.19",
"vue": "^3.2.37",
"vue-i18n": "^9.1.9",
"vuex": "^4.0.2"
},
"devDependencies": {
"@dcloudio/types": "^3.0.7",
"@dcloudio/uni-automator": "3.0.0-alpha-3050220220719002",
"@dcloudio/uni-cli-shared": "3.0.0-alpha-3050220220719002",
"@dcloudio/vite-plugin-uni": "3.0.0-alpha-3050220220719002",
"typescript": "^4.7.4",
"vite": "^2.9.14"
}
}
更新后
{
"name": "uni_vue3_vite_ts",
"version": "0.0.0",
"scripts": {
"app": "uni -p app",
"custom": "uni -p",
"h5": "uni",
"h5:ssr": "uni --ssr",
"alipay": "uni -p mp-alipay",
"baidu": "uni -p mp-baidu",
"kuaishou": "uni -p mp-kuaishou",
"lark": "uni -p mp-lark",
"qq": "uni -p mp-qq",
"toutiao": "uni -p mp-toutiao",
"weixin": "uni -p mp-weixin",
"quickapp-webview": "uni -p quickapp-webview",
"quickapp-webview-huawei": "uni -p quickapp-webview-huawei",
"quickapp-webview-union": "uni -p quickapp-webview-union",
"build:app": "uni build -p app",
"build:custom": "uni build -p",
"build:h5": "uni build",
"build:h5:ssr": "uni build --ssr",
"build:alipay": "uni build -p mp-alipay",
"build:baidu": "uni build -p mp-baidu",
"build:kuaishou": "uni build -p mp-kuaishou",
"build:lark": "uni build -p mp-lark",
"build:qq": "uni build -p mp-qq",
"build:toutiao": "uni build -p mp-toutiao",
"build:weixin": "uni build -p mp-weixin",
"build:quickapp-webview": "uni build -p quickapp-webview",
"build:quickapp-webview-huawei": "uni build -p quickapp-webview-huawei",
"build:quickapp-webview-union": "uni build -p quickapp-webview-union"
},
"dependencies": {
"@dcloudio/uni-app": "3.0.0-alpha-3061420221216001",
"@dcloudio/uni-app-plus": "3.0.0-alpha-3061420221216001",
"@dcloudio/uni-components": "3.0.0-alpha-3061420221216001",
"@dcloudio/uni-h5": "3.0.0-alpha-3061420221216001",
"@dcloudio/uni-mp-alipay": "3.0.0-alpha-3061420221216001",
"@dcloudio/uni-mp-baidu": "3.0.0-alpha-3061420221216001",
"@dcloudio/uni-mp-kuaishou": "3.0.0-alpha-3061420221216001",
"@dcloudio/uni-mp-lark": "3.0.0-alpha-3061420221216001",
"@dcloudio/uni-mp-qq": "3.0.0-alpha-3061420221216001",
"@dcloudio/uni-mp-toutiao": "3.0.0-alpha-3061420221216001",
"@dcloudio/uni-mp-weixin": "3.0.0-alpha-3061420221216001",
"@dcloudio/uni-quickapp-webview": "3.0.0-alpha-3061420221216001",
"sass": "^1.54.0",
"uview-plus": "^3.1.19",
"vue": "^3.2.45",
"vue-i18n": "^9.1.9",
"vuex": "^4.0.2"
},
"devDependencies": {
"@dcloudio/types": "^3.0.17",
"@dcloudio/uni-automator": "3.0.0-alpha-3061420221216001",
"@dcloudio/uni-cli-shared": "3.0.0-alpha-3061420221216001",
"@dcloudio/uni-stacktracey": "3.0.0-alpha-3061420221216001",
"@dcloudio/vite-plugin-uni": "3.0.0-alpha-3061420221216001",
"typescript": "^4.7.4",
"vite": "^3.2.4"
}
}
- 发布:2022-12-22 03:05
- 更新:2023-01-04 11:30
- 阅读:378
uniapp vite+vue3+ts Windows PowerShell 编译h5卡住
vite版本锁定到3.2.4试下
-
mumu_v (作者)
回复 DCloud_UNI_WZF: 您好,我在尝试锁定package.json在3.2.4之后发现所安装的node版本是3.2.5版本,在尝试多次之后他安装的版本还是3.2.5
2023-01-03 23:43
-
mumu_v (作者)
回复 1***@wo.cn: 您好,我在尝试使用官网vite示例项目后发现一个问题
00:39:18.836 X [ERROR] Cannot start service: Host version "0.16.13" does not match binary version "0.15.18"
00:39:18.861 1 error
00:39:18.887 failed to load config from X:\桌面\新建文件夹 (2)\uni-preset-vue-vite-ts\vite.config.ts
00:39:18.911 error when starting dev server:
00:39:18.935 Error: The service was stopped
00:39:18.957 at X:\桌面\新建文件夹 (2)\uni-preset-vue-vite-ts\node_modules\vite\node_modules\esbuild\lib\main.js:1141:25
00:39:18.980 at responseCallbacks.<computed> (X:\桌面\新建文件夹 (2)\uni-preset-vue-vite-ts\node_modules\vite\node_modules\esbuild\lib\main.js:697:9)
00:39:19.001 at Socket.afterClose (X:\桌面\新建文件夹 (2)\uni-preset-vue-vite-ts\node_modules\vite\node_modules\esbuild\lib\main.js:687:28)
00:39:19.020 at Socket.emit (node:events:525:35)
00:39:19.038 at endReadableNT (node:internal/streams/readable:1359:12)
00:39:19.040 at process.processTicksAndRejections (node:internal/process/task_queues:82:21) 这个在删除node包之后还是不行,hbuilderX运行不了,然后Windows PowerShell还是不行2023-01-04 00:41
mumu_v (作者)
您好,在控制版本为3.2.4之后,问题解决
2023-01-04 23:52