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.6.4后报错 Uncaught TypeError: Cannot read properties of undefined (reading 'list') #13581

Closed
spadeACE7 opened this issue Apr 4, 2023 · 9 comments · Fixed by #13597
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x

Comments

@spadeACE7
Copy link

相关平台

H5

**浏览器版本: Chrome **
使用框架: React

复现步骤

看到版本更新了,于是升级了taro的相关依赖到最新版本
运行 yarn dev:h5 页面报错:
Uncaught TypeError: Cannot read properties of undefined (reading 'list')

image

具体报错位置:
image

期望结果

页面正常展示

实际结果

控制台报错

环境信息

Taro CLI 3.6.4 environment info:
    System:
      OS: macOS 13.2.1
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 16.17.0 - ~/.nvm/versions/node/v16.17.0/bin/node
      Yarn: 1.22.19 - /usr/local/bin/yarn
      npm: 8.15.0 - ~/.nvm/versions/node/v16.17.0/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.4 => 3.6.4 
      @tarojs/components: 3.6.4 => 3.6.4 
      @tarojs/components-rn: 3.6.4 => 3.6.4 
      @tarojs/helper: 3.6.4 => 3.6.4 
      @tarojs/plugin-framework-react: 3.6.4 => 3.6.4 
      @tarojs/plugin-html: 3.6.4 => 3.6.4 
      @tarojs/plugin-mini-ci: 3.6.4 => 3.6.4 
      @tarojs/plugin-platform-alipay: 3.6.4 => 3.6.4 
      @tarojs/plugin-platform-jd: 3.6.4 => 3.6.4 
      @tarojs/plugin-platform-qq: 3.6.4 => 3.6.4 
      @tarojs/plugin-platform-swan: 3.6.4 => 3.6.4 
      @tarojs/plugin-platform-tt: 3.6.4 => 3.6.4 
      @tarojs/plugin-platform-weapp: 3.6.4 => 3.6.4 
      @tarojs/react: 3.6.4 => 3.6.4 
      @tarojs/rn-runner: 3.6.4 => 3.6.4 
      @tarojs/router: 3.6.4 => 3.6.4 
      @tarojs/runtime: 3.6.4 => 3.6.4 
      @tarojs/shared: 3.6.4 => 3.6.4 
      @tarojs/taro: 3.6.4 => 3.6.4 
      @tarojs/taro-h5: 3.6.4 => 3.6.4 
      @tarojs/taro-rn: 3.6.4 => 3.6.4 
      @tarojs/webpack5-runner: 3.6.4 => 3.6.4 
      babel-preset-taro: 3.6.4 => 3.6.4 
      eslint-config-taro: 3.6.4 => 3.6.4 
      expo: ~47.0.3 => 47.0.13 
      react: 18.1.0 => 18.1.0 
      react-native: 0.70.5 => 0.70.5 
      taro-ui: ^3.1.0-beta.4 => 3.1.0-beta.4 
@taro-bot2 taro-bot2 bot added F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Apr 4, 2023
@TheKonka
Copy link
Member

TheKonka commented Apr 5, 2023

没有复现,有空可以给个 复现的仓库
更新:使用tabbar 才会出现问题,应该是taro 的api 没有挂载上的问题

@luxiang0412
Copy link

没有复现,有空可以给个 复现的仓库

https://github.com/luxiang0412/taro-issue-13581
3.6.2没有这个问题

@hcw2175
Copy link

hcw2175 commented Apr 6, 2023

感觉每次升级都是H5有问题

image

@DerekHQ
Copy link

DerekHQ commented Apr 6, 2023

我也遇到同样的问题, 脚手架的demo能运行; 老项目从taro3.0 升到3.6.4, 编译不报错,进页面(用了taro-ui 3.1.0)也报这个错
image

@TheKonka
Copy link
Member

TheKonka commented Apr 6, 2023

#13586 (comment)

可以临时修复

@spadeACE7
Copy link
Author

没有复现,有空可以给个 复现的仓库 更新:使用tabbar 才会出现问题,应该是taro 的api 没有挂载上的问题

是的 使用 tabBar 就会出现上述问题

@spadeACE7
Copy link
Author

#13586 (comment)

可以临时修复

我试了下,还是不行。会继续报错 Uncaught TypeError: Cannot read properties of undefined (reading 'list')

@spadeACE7
Copy link
Author

我也遇到同样的问题, 脚手架的demo能运行; 老项目从taro3.0 升到3.6.4, 编译不报错,进页面(用了taro-ui 3.1.0)也报这个错 image

配置了tabBar的原因,脚手架的demo没有使用tabBar,所以没有报错

@spadeACE7
Copy link
Author

什么时候发包?

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
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants