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

从3.3.0 升级到 3.7.0-alpha.1 dva 报错 #13711

Open
gyf30827 opened this issue Apr 21, 2023 · 2 comments
Open

从3.3.0 升级到 3.7.0-alpha.1 dva 报错 #13711

gyf30827 opened this issue Apr 21, 2023 · 2 comments
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x
Milestone

Comments

@gyf30827
Copy link

gyf30827 commented Apr 21, 2023

相关平台

H5

浏览器版本: 最新版本chrome
使用框架: React

复现步骤

启动项目稳定复现

期望结果

能正常使用

实际结果

不能正常使用

环境信息

 Taro v3.7.0-alpha.1

publicPath //cdn.iyisong.net/qiwei-order/
buildProdMap undefined

  Taro CLI 3.7.0-alpha.1 environment info:
    System:
      OS: macOS 11.5.1
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 16.16.0 - ~/.nvm/versions/node/v16.16.0/bin/node
      Yarn: 1.22.19 - /usr/local/bin/yarn
      npm: 8.11.0 - ~/.nvm/versions/node/v16.16.0/bin/npm
    npmPackages:
      @tarojs/cli: 3.7.0-alpha.1 => 3.7.0-alpha.1 
      @tarojs/components: 3.7.0-alpha.1 => 3.7.0-alpha.1 
      @tarojs/mini-runner: 3.7.0-alpha.1 => 3.7.0-alpha.1 
      @tarojs/plugin-framework-react: 3.7.0-alpha.1 => 3.7.0-alpha.1 
      @tarojs/plugin-html: 3.7.0-alpha.1 => 3.7.0-alpha.1 
      @tarojs/plugin-platform-h5: ^3.6.5 => 3.6.5 
      @tarojs/react: 3.7.0-alpha.1 => 3.7.0-alpha.1 
      @tarojs/runtime: 3.7.0-alpha.1 => 3.7.0-alpha.1 
      @tarojs/taro: 3.7.0-alpha.1 => 3.7.0-alpha.1 
      @tarojs/webpack-runner: 3.7.0-alpha.1 => 3.7.0-alpha.1 
      @tarojs/webpack5-runner: 3.7.0-alpha.1 => 3.7.0-alpha.1 
      babel-plugin-transform-taroapi: 3.7.0-alpha.1 => 3.7.0-alpha.1 
      babel-preset-taro: 3.7.0-alpha.1 => 3.7.0-alpha.1 
      react: 18.1.0 => 18.1.0 
      taro-ui: 3.0.0-alpha.3 => 3.0.0-alpha.3 

image
image

@ZakaryCode ZakaryCode added this to the 3.7.0 milestone Apr 21, 2023
@ZakaryCode ZakaryCode added V-3 Version - 3.x F-react Framework - React T-h5 Target - 编译到 H5 labels Apr 21, 2023
@AdvancedCat
Copy link
Member

可能是 dva 的问题,貌似已经摆烂了, dvajs/dva#2494

Taro 3.5 开始默认使用 React 18 了

@gyf30827
Copy link
Author

gyf30827 commented Apr 21, 2023

可能是 dva 的问题,貌似已经摆烂了, dvajs/dva#2494

Taro 3.5 开始默认使用 React 18 了

升级前react 已经升到 18了,可以正常使用
@AdvancedCat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Status: Padding
Development

No branches or pull requests

3 participants