Skip to content

react-native 怎么升级版本 #15867

@wuweikd

Description

@wuweikd

相关平台

React Native

使用框架: React

复现步骤

目前是 "react-native": "^0.70.1",
我想升级到 "react-native": "0.74.1",

因为我的壳工程是 "react-native": "0.74.1",

期望结果

升级有什么方案吗

实际结果

期望有个方案升级,我直接改版本号再yarn,build会失败。

环境信息

👽 Taro v3.6.29


  Taro CLI 3.6.29 environment info:
    System:
      OS: Windows 10 10.0.19045
    Binaries:
      Node: 18.20.2 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.22.22 - ~\AppData\Roaming\npm\node_modules\yarn\bin\yarn.CMD
      npm: 10.5.2 - C:\Program Files\nodejs\npm.CMD
    npmPackages:
      @tarojs/cli: 3.6.29 => 3.6.29
      @tarojs/components: 3.6.29 => 3.6.29
      @tarojs/helper: 3.6.29 => 3.6.29
      @tarojs/plugin-framework-react: 3.6.29 => 3.6.29
      @tarojs/plugin-platform-alipay: 3.6.29 => 3.6.29
      @tarojs/plugin-platform-h5: 3.6.29 => 3.6.29
      @tarojs/plugin-platform-jd: 3.6.29 => 3.6.29
      @tarojs/plugin-platform-qq: 3.6.29 => 3.6.29
      @tarojs/plugin-platform-swan: 3.6.29 => 3.6.29
      @tarojs/plugin-platform-tt: 3.6.29 => 3.6.29
      @tarojs/plugin-platform-weapp: 3.6.29 => 3.6.29
      @tarojs/react: 3.6.29 => 3.6.29
      @tarojs/rn-runner: 3.6.29 => 3.6.29
      @tarojs/rn-supporter: 3.6.29 => 3.6.29
      @tarojs/router-rn: 3.6.30 => 3.6.30
      @tarojs/runtime: 3.6.29 => 3.6.29
      @tarojs/runtime-rn: 3.6.29 => 3.6.29
      @tarojs/shared: 3.6.29 => 3.6.29
      @tarojs/taro: 3.6.29 => 3.6.29
      @tarojs/taro-loader: 3.6.29 => 3.6.29
      @tarojs/taro-rn: 3.6.29 => 3.6.29
      @tarojs/webpack5-runner: 3.6.29 => 3.6.29
      babel-preset-taro: 3.6.29 => 3.6.29
      eslint-config-taro: 3.6.29 => 3.6.29
      expo: ~47.0.3 => 47.0.14
      react: ^18.1.0 => 18.3.1
      react-native: ^0.70.1 => 0.70.15


顺便补充一个问题,windows环境执行 yarn upgradePeerdeps 会失败
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    F-reactFramework - ReactT-rnTarget - 编译到 React NativeV-3Version - 3.x

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions