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

类型“TaroStatic”上不存在属性“tradePay”。 #14072

Closed
barclaycc opened this issue Jun 27, 2023 · 0 comments · Fixed by #14092
Closed

类型“TaroStatic”上不存在属性“tradePay”。 #14072

barclaycc opened this issue Jun 27, 2023 · 0 comments · Fixed by #14092
Labels
A-typings Area - TypeScript Typings 相关 E-easy Helper Wanted - Easy F-react Framework - React T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x

Comments

@barclaycc
Copy link

相关平台

支付宝小程序

小程序基础库: 支付宝小程序
使用框架: React

复现步骤

调用支付宝支付Taro.tradePay,API可使用,但ts报错类型“TaroStatic”上不存在属性“tradePay”。

期望结果

无ts报错

实际结果

ts报错标红

环境信息

Taro CLI 3.6.8 environment info:
    System:
      OS: macOS 13.3.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 14.19.1 - /usr/local/bin/node
      Yarn: 1.22.19 - ~/.yarn/bin/yarn
      npm: 6.14.16 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.8 => 3.6.8 
      @tarojs/components: 3.6.8 => 3.6.8 
      @tarojs/helper: 3.6.8 => 3.6.8 
      @tarojs/plugin-framework-react: 3.6.8 => 3.6.8 
      @tarojs/plugin-html: 3.6.8 => 3.6.8 
      @tarojs/plugin-platform-alipay: 3.6.8 => 3.6.8 
      @tarojs/plugin-platform-h5: 3.6.8 => 3.6.8 
      @tarojs/plugin-platform-jd: 3.6.8 => 3.6.8 
      @tarojs/plugin-platform-qq: 3.6.8 => 3.6.8 
      @tarojs/plugin-platform-swan: 3.6.8 => 3.6.8 
      @tarojs/plugin-platform-tt: 3.6.8 => 3.6.8 
      @tarojs/plugin-platform-weapp: 3.6.8 => 3.6.8 
      @tarojs/react: 3.6.8 => 3.6.8 
      @tarojs/runtime: 3.6.8 => 3.6.8 
      @tarojs/shared: 3.6.8 => 3.6.8 
      @tarojs/taro: 3.6.8 => 3.6.8 
      @tarojs/webpack5-runner: 3.6.8 => 3.6.8 
      babel-preset-taro: 3.6.8 => 3.6.8 
      eslint-config-taro: 3.6.8 => 3.6.8 
      react: ^18.2.0 => 18.2.0 
    npmGlobalPackages:
      typescript: 5.0.2
@taro-bot2 taro-bot2 bot added F-react Framework - React T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x labels Jun 27, 2023
@TheKonka TheKonka added the A-typings Area - TypeScript Typings 相关 label Jun 27, 2023
@ZakaryCode ZakaryCode removed their assignment Jun 28, 2023
@ZakaryCode ZakaryCode added the E-easy Helper Wanted - Easy label Jun 28, 2023
@ZakaryCode ZakaryCode removed their assignment Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-typings Area - TypeScript Typings 相关 E-easy Helper Wanted - Easy F-react Framework - React T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants