Skip to content

使用taro update project升级报错 plugin-framework-vue3插件锁定vite版本为4,导致vite版本冲突? #16994

@chengYuanXiang11

Description

@chengYuanXiang11

相关平台

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: [email protected]
npm error Found: [email protected]
npm error node_modules/vite
npm error peer vite@"^5.0.0 || ^6.0.0" from @vitejs/[email protected]
npm error node_modules/@vitejs/plugin-vue
npm error peerOptional @vitejs/plugin-vue@"^5" from @tarojs/[email protected]
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/[email protected]
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 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions