Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

taro工程从3.6.35升级到4.0.7时报错 #16779

Open
noneorone opened this issue Oct 31, 2024 · 1 comment
Open

taro工程从3.6.35升级到4.0.7时报错 #16779

noneorone opened this issue Oct 31, 2024 · 1 comment
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-4 Version - 4.x

Comments

@noneorone
Copy link

相关平台

微信小程序

小程序基础库: 2.17.3
使用框架: Vue 3

复现步骤

  1. 更新taro版本:
    D:\h5\workspace\taro3x-learning>taro update self

  2. 更新taro工程

D:\h5\workspace\taro3x-learning>taro update project
👽 Taro v4.0.7

项目当前 Taro 版本:3.6.35,Taro 最新版本:4.0.7,更新项目 package.json 成功!

? 请选择包管理工具 npm
⚠ npm
⚠  ERR! code ERESOLVE
⚠ npm
⚠ ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/vite
npm ERR!   peer vite@"^5.0.0" from @vitejs/[email protected]
npm ERR!   node_modules/@vitejs/plugin-vue
npm ERR!     peerOptional @vitejs/plugin-vue@"^5" from @tarojs/[email protected]
npm ERR!     node_modules/@tarojs/plugin-framework-vue3
⚠ npm ERR!       @tarojs/plugin-framework-vue3@"4.0.7" from the root project
npm ERR!   peer vite@"^4.0.0 || ^5.0.0" from @vitejs/[email protected]
npm ERR!   node_modules/@vitejs/plugin-vue-jsx
npm ERR!     peerOptional @vitejs/plugin-vue-jsx@"^3" from @tarojs/[email protected]
npm ERR!     node_modules/@tarojs/plugin-framework-vue3
npm ERR!       @tarojs/plugin-framework-vue3@"4.0.7" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional vite@"^4" from @tarojs/[email protected]
npm ERR! node_modules/@tarojs/plugin-framework-vue3
npm ERR!   @tarojs/plugin-framework-vue3@"4.0.7" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! C:\Users\wangm\AppData\Local\npm-cache\_logs\2024-10-31T11_09_27_720Z-eresolve-report.txt
⚠
npm ERR! A complete log of this run can be found in: C:\Users\wangm\AppData\Local\npm-cache\_logs\2024-10-31T11_09_27_720Z-debug-0.log

期望结果

3.6.35 能正常升级到 4.0.7

实际结果

3.6.35 不能正常升级到 4.0.7

环境信息

  Taro CLI 3.6.35 environment info:
    System:
      OS: Windows 10 10.0.19045
    Binaries:
      Node: 18.19.0 - E:\Program Files\nodejs\node.EXE
      Yarn: 1.22.21 - E:\Program Files\nodejs\yarn.CMD
      npm: 10.2.3 - E:\Program Files\nodejs\npm.CMD   
    npmPackages:
      @tarojs/components: 3.6.35 => 3.6.35
      @tarojs/plugin-framework-vue3: 3.6.35 => 3.6.35 
      @tarojs/plugin-platform-h5: 3.6.35 => 3.6.35    
      @tarojs/runtime: 3.6.35 => 3.6.35
      @tarojs/taro: 3.6.35 => 3.6.35
      @tarojs/webpack5-runner: 3.6.35 => 3.6.35       
      babel-preset-taro: 3.6.35 => 3.6.35
      eslint-config-taro: 3.6.35 => 3.6.35
@TheKonka TheKonka added F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-4 Version - 4.x labels Nov 1, 2024
This was referenced Nov 2, 2024
@HongxuanG
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-4 Version - 4.x
Projects
Status: Todo
Development

No branches or pull requests

3 participants