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

支付宝createSelectorQuery报错 #9939

Closed
lf7817 opened this issue Jul 30, 2021 · 5 comments
Closed

支付宝createSelectorQuery报错 #9939

lf7817 opened this issue Jul 30, 2021 · 5 comments
Labels
F-react Framework - React T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x

Comments

@lf7817
Copy link
Contributor

lf7817 commented Jul 30, 2021

相关平台

支付宝小程序

复现仓库

https://github.com/lf7817/taro-alipay-bug
小程序基础库: 无
使用框架: React

复现步骤

yarn dev:alipay

期望结果

createSelectorQuery可以正常查询

实际结果

index.js:52 Uncaught TypeError: _tarojs_taro__WEBPACK_IMPORTED_MODULE_6___default.a.createSelectorQuery(...).select(...).node is not a function

环境信息

  Taro CLI 3.3.1 environment info:
    System:
      OS: macOS 11.5
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 14.16.0 - ~/.nvm/versions/node/v14.16.0/bin/node
      Yarn: 1.22.10 - /opt/homebrew/bin/yarn
      npm: 6.14.11 - ~/.nvm/versions/node/v14.16.0/bin/npm
    npmPackages:
      @tarojs/components: 3.3.1 => 3.3.1 
      @tarojs/mini-runner: 3.3.1 => 3.3.1 
      @tarojs/react: 3.3.1 => 3.3.1 
      @tarojs/runtime: 3.3.1 => 3.3.1 
      @tarojs/taro: 3.3.1 => 3.3.1 
      @tarojs/webpack-runner: 3.3.1 => 3.3.1 
      babel-preset-taro: 3.3.1 => 3.3.1 
      eslint-config-taro: 3.3.1 => 3.3.1 
      react: ^17.0.0 => 17.0.2 
@taro-bot2 taro-bot2 bot added F-react Framework - React T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x labels Jul 30, 2021
@lf7817
Copy link
Contributor Author

lf7817 commented Jul 30, 2021

顺便再给支付宝canvas加个type prop吧

@Chen-jj
Copy link
Contributor

Chen-jj commented Jul 30, 2021

有试过 3.2 可以不?

@lf7817
Copy link
Contributor Author

lf7817 commented Jul 30, 2021

有试过 3.2 可以不?

试过了,3.2.16也是这样

@pingan1927
Copy link

pingan1927 commented Aug 4, 2021

1、支付宝启用基础库2.0 https://opendocs.alipay.com/mini/framework/lib-upgrade-v2 ,createSelectorQuery().node().exec() 基础库2.0才开始支持哦

@Chen-jj
Copy link
Contributor

Chen-jj commented Aug 5, 2021

@lf7817 楼上正解

image

@Chen-jj Chen-jj closed this as completed Aug 5, 2021
@Chen-jj Chen-jj removed this from the 3.3.3 milestone Aug 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

3 participants