使用taro update project升级报错 plugin-framework-vue3插件锁定vite版本为4,导致vite版本冲突?
Opened this issue · 0 comments
相关平台
H5
浏览器版本: Chrome 62
使用框架: Vue 3
复现步骤
使用taro update project升级工程,报错如下
⚠ npm error code ERESOLVE
⚠ npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: infections-discover-ecosystem-front@1.0.0
npm error Found: vite@6.0.2
npm error node_modules/vite
npm error peer vite@"^5.0.0 || ^6.0.0" from @vitejs/plugin-vue@5.2.1
npm error node_modules/@vitejs/plugin-vue
npm error peerOptional @vitejs/plugin-vue@"^5" from @tarojs/plugin-framework-vue3@4.0.8
npm error node_modules/@tarojs/plugin-framework-vue3
npm error @tarojs/plugin-framework-vue3@"4.0.8" from the root project
npm error
npm error Could not resolve dependency:
npm error peerOptional vite@"^4" from @tarojs/plugin-framework-vue3@4.0.8
npm error node_modules/@tarojs/plugin-framework-vue3
npm error @tarojs/plugin-framework-vue3@"4.0.8" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error C:\Users\admin\AppData\Local\npm-cache_logs\2024-12-05T09_39_03_810Z-eresolve-report.txt
⚠ npm error A complete log of this run can be found in: C:\Users\admin\AppData\Local\npm-cache_logs\2024-12-05T09_39_03_810Z-debug-0.log
期望结果
正常升级去除vite版本限制
实际结果
无法正常升级,vite版本冲突
环境信息
Taro CLI 4.0.8 environment info:
System:
OS: Windows 11 10.0.22631
Binaries:
Node: 20.18.0 - C:\Program Files\nodejs\node.EXE
npm: 10.8.2 - C:\Program Files\nodejs\npm.CMD
npmPackages:
@tarojs/cli: 4.0.8 => 3.6.35
@tarojs/components: 4.0.8 => 3.6.35
@tarojs/helper: 4.0.8 => 3.6.35
@tarojs/plugin-framework-vue3: 4.0.8 => 3.6.35
@tarojs/plugin-html: 4.0.8 => 3.6.35
@tarojs/plugin-inject: 4.0.8 => 3.6.35
@tarojs/plugin-platform-alipay: 4.0.8 => 3.6.8
@tarojs/plugin-platform-h5: 4.0.8 => 3.6.8
@tarojs/plugin-platform-jd: 4.0.8 => 3.6.8
@tarojs/plugin-platform-qq: 4.0.8 => 3.6.8
@tarojs/plugin-platform-swan: 4.0.8 => 3.6.8
@tarojs/plugin-platform-tt: 4.0.8 => 3.6.8
@tarojs/plugin-platform-weapp: 4.0.8 => 3.6.35
@tarojs/runtime: 4.0.8 => 3.6.35
@tarojs/shared: 4.0.8 => 3.6.35
@tarojs/taro: 4.0.8 => 3.6.35
@tarojs/taro-loader: 4.0.8 => 3.6.35
@tarojs/webpack5-runner: 4.0.8 => 3.6.35
babel-preset-taro: 4.0.8 => 3.6.8
eslint-config-taro: 4.0.8 => 3.6.8