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

虚拟列表使用unlimitedSize参数报错 #9280

Closed
qwerlp opened this issue May 7, 2021 · 2 comments
Closed

虚拟列表使用unlimitedSize参数报错 #9280

qwerlp opened this issue May 7, 2021 · 2 comments
Assignees
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x

Comments

@qwerlp
Copy link

qwerlp commented May 7, 2021

相关平台

H5

浏览器版本: Chrome90.0.4430.93
使用框架: React

复现步骤

使用虚拟列表并且添加unlimitedSize参数就会报错
image

期望结果

正常运行

实际结果

image

createListComponent.js?587f:27 Uncaught (in promise) TypeError: tarojs_taro__WEBPACK_IMPORTED_MODULE_0_.default.createSelectorQuery is not a function
at getRectSize (createListComponent.js?587f:27)
at eval (createListComponent.js?587f:132)
at new Promise ()
at List._getSizeUploadSync (createListComponent.js?587f:111)
at List._getSizeUpload (createListComponent.js?587f:137)
at getItemSize (FixedSizeList.js?8bc2:94)
at List._getItemStyle (createListComponent.js?587f:199)
at List.render (createListComponent.js?587f:503)
at finishClassComponent (react-dom.development.js?61bb:17160)
at updateClassComponent (react-dom.development.js?61bb:17110)

环境信息

  Taro CLI 3.1.4 environment info:
    System:
      OS: macOS 11.2.3
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 14.16.0 - /usr/local/bin/node
      Yarn: 1.22.10 - /usr/local/bin/yarn
      npm: 7.8.0 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 3.1.4 => 3.1.4 
      @tarojs/components: 3.1.4 => 3.1.4 
      @tarojs/mini-runner: 3.1.4 => 3.1.4 
      @tarojs/react: 3.1.4 => 3.1.4 
      @tarojs/runtime: 3.1.4 => 3.1.4 
      @tarojs/taro: 3.1.4 => 3.1.4 
      @tarojs/webpack-runner: ^3.0.24 => 3.1.4 
      babel-preset-taro: 3.1.4 => 3.1.4 
      eslint-config-taro: 3.1.4 => 3.1.4 
      react: ^16.14.0 => 16.14.0 
      taro-ui: 3.0.0-alpha.3 => 3.0.0-alpha.3 
@taro-bot2 taro-bot2 bot added F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x labels May 7, 2021
@Rambos
Copy link

Rambos commented May 11, 2021

也遇到这个问题了,H5虚拟列表似乎用不了。 跟加什么参数好像没关系。 滚动就会报错_tarojs_taro__WEBPACK_IMPORTED_MODULE_0__.default.createSelectorQuery is not a function

@ZakaryCode
Copy link
Contributor

未能复现到该问题,可以升级到最新版本试试

如果依旧无法正常使用可以提供个 demo 看看

@taro-bot2 taro-bot2 bot removed the to be closed label Dec 6, 2021
@taro-bot2 taro-bot2 bot closed this as completed Dec 6, 2021
@ZakaryCode ZakaryCode moved this to Done in H5 Apr 10, 2023
@ZakaryCode ZakaryCode added this to H5 Apr 10, 2023
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

No branches or pull requests

3 participants