通过教程npx degit dcloudio/uni-preset-vue#vite my-vue3-project 安装的最新vue3+vite的cli版本 编译时提示版本为3.3.12
使用hx3.3.11预览app时提示当前cli项目版本较低不支持App的运行和发行
采离线打包,依赖最新的sdk,运行时也提示cli版本太高
请问,3.3.11的cli的版本是多少
package.json文件
{
"name": "uni-preset-vue",
"version": "0.0.0",
"scripts": {
"dev:app": "uni -p app",
"dev:custom": "uni -p",
"dev:h5": "uni",
"dev:h5:ssr": "uni --ssr",
"dev:mp-alipay": "uni -p mp-alipay",
"dev:mp-baidu": "uni -p mp-baidu",
"dev:mp-kuaishou": "uni -p mp-kuaishou",
"dev:mp-lark": "uni -p mp-lark",
"dev:mp-qq": "uni -p mp-qq",
"dev:mp-toutiao": "uni -p mp-toutiao",
"dev:mp-weixin": "uni -p mp-weixin",
"dev:quickapp-webview": "uni -p quickapp-webview",
"dev:quickapp-webview-huawei": "uni -p quickapp-webview-huawei",
"dev: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:mp-alipay": "uni build -p mp-alipay",
"build:mp-baidu": "uni build -p mp-baidu",
"build:mp-kuaishou": "uni build -p mp-kuaishou",
"build:mp-lark": "uni build -p mp-lark",
"build:mp-qq": "uni build -p mp-qq",
"build:mp-toutiao": "uni build -p mp-toutiao",
"build:mp-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-3031120220208001",
"@dcloudio/uni-app-plus": "^3.0.0-alpha-3031120220208001",
"@dcloudio/uni-components": "^3.0.0-alpha-3031120220208001",
"@dcloudio/uni-h5": "^3.0.0-alpha-3031120220208001",
"@dcloudio/uni-mp-alipay": "^3.0.0-alpha-3031120220208001",
"@dcloudio/uni-mp-baidu": "^3.0.0-alpha-3031120220208001",
"@dcloudio/uni-mp-kuaishou": "^3.0.0-alpha-3031120220208001",
"@dcloudio/uni-mp-lark": "^3.0.0-alpha-3031120220208001",
"@dcloudio/uni-mp-qq": "^3.0.0-alpha-3031120220208001",
"@dcloudio/uni-mp-toutiao": "^3.0.0-alpha-3031120220208001",
"@dcloudio/uni-mp-weixin": "^3.0.0-alpha-3031120220208001",
"@dcloudio/uni-quickapp-webview": "^3.0.0-alpha-3031120220208001",
"vue": "^3.2.30",
"vue-i18n": "^9.1.9",
"vuex": "^4.0.2"
},
"devDependencies": {
"@dcloudio/types": "^2.5.17",
"@dcloudio/uni-automator": "^3.0.0-alpha-3031120220208001",
"@dcloudio/uni-cli-shared": "^3.0.0-alpha-3031120220208001",
"@dcloudio/vite-plugin-uni": "^3.0.0-alpha-3031120220208001",
"autoprefixer": "^10.4.2",
"compressing": "^1.5.1",
"cross-env": "^7.0.3",
"form-data": "^4.0.0",
"sass": "^1.49.8",
"vite": "^2.8.3"
}
}
5***@qq.com (作者)
版本显示是3.3.8了,请问vue3+vite是不支持正式版吗
2022-02-22 18:11
DCloud_UNI_GSQ
回复 5***@qq.com: 支持,3.3.11正式版对应的就是3.0.0-alpha-3031120220208001,npm ls @dcloudio/vite-plugin-uni 打印一下版本
2022-02-22 18:29
5***@qq.com (作者)
回复 DCloud_UNI_GSQ: npm ls @dcloudio/vite-plugin-uni
uni-preset-vue@0.0.0 D:\mytest\base-uniapp
`-- @dcloudio/vite-plugin-uni@3.0.0-alpha-3031120220208001
执行结果
2022-02-22 19:24
DCloud_UNI_GSQ
回复 5***@qq.com: 看一下这个包中的package.json 文件,compilerVersion是版本号描述
2022-02-22 19:31
5***@qq.com (作者)
清洗缓存,从新拉代码后,npm ls @dcloudio/vite-plugin-uni
uni-preset-vue@0.0.0 D:\mytest\base-uniapp
`-- (empty)
执行结果还是这样,在manifest.json下compilerVersion 是3.3.11了,但离线打包现在是白屏,目前在排除原因,版本号正确了,感谢
2022-02-23 09:49