taro QQ小程序使用虚拟列表VirtualList报错

ldxq2e6h  于 22天前  发布在  其他
关注(0)|答案(3)|浏览(18)

相关平台

QQ 小程序

小程序基础库: 1.62.8
使用框架: React

复现步骤

每次编译必现

期望结果

没有报错

实际结果

VM48:261 TypeError: (0 , w.createSelectorQuery)(...).select(...).node is not a function
at e.value (taro.js? [sm]:1)
at n.value (taro.js? [sm]:1)
at Qa (VM62 app.js:3730)
at Da (VM62 app.js:3709)
at Ma (VM62 app.js:3681)
at Ku (VM62 app.js:4574)
at Ju (VM62 app.js:4546)
at Bu (VM62 app.js:4287)
at rt (VM62 app.js:898)
at VM62 app.js:4111

环境信息

👽 Taro v3.6.12

  Taro CLI 3.6.12 environment info:
    System:
      OS: macOS 10.15.4
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 19.6.0 - /usr/local/bin/node
      npm: 9.4.0 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.12 => 3.6.12 
      @tarojs/components: 3.6.12 => 3.6.12 
      @tarojs/helper: 3.6.12 => 3.6.12 
      @tarojs/plugin-framework-react: 3.6.12 => 3.6.12 
      @tarojs/plugin-platform-alipay: 3.6.12 => 3.6.12 
      @tarojs/plugin-platform-h5: 3.6.12 => 3.6.12 
      @tarojs/plugin-platform-jd: 3.6.12 => 3.6.12 
      @tarojs/plugin-platform-qq: 3.6.12 => 3.6.12 
      @tarojs/plugin-platform-swan: 3.6.12 => 3.6.12 
      @tarojs/plugin-platform-tt: 3.6.12 => 3.6.12 
      @tarojs/plugin-platform-weapp: 3.6.12 => 3.6.12 
      @tarojs/react: 3.6.12 => 3.6.12 
      @tarojs/runtime: 3.6.12 => 3.6.12 
      @tarojs/shared: 3.6.12 => 3.6.12 
      @tarojs/taro: 3.6.12 => 3.6.12 
      @tarojs/taro-loader: 3.6.12 => 3.6.12 
      @tarojs/webpack5-runner: 3.6.12 => 3.6.12 
      babel-preset-taro: 3.6.12 => 3.6.12 
      eslint-config-taro: ^3.6.15 => 3.6.15 
      react: ^18.0.0 => 18.2.0 
      taro-ui: ^3.1.1 => 3.1.1

补充信息

小程序首页只是一个虚拟列表
现在的虚拟列表的代码,在微信小程序和抖音小程序上都是正常的。
在QQ小程序里面,打开QQ小程序编译完,就有上面的报错

kse8i1jr

kse8i1jr2#

看似是小程序提供的 API 抛出的问题,可以先辅助检查下 createSelectorQuery 获取的节点是否存在问题

3pvhb19x

3pvhb19x3#

看似是小程序提供的 API 抛出的问题,可以先辅助检查下 createSelectorQuery 获取的节点是否存在问题

好勒,多谢多谢,我在研究下

相关问题