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

Taro.requirePlugin执行报错 #16743

Open
Qi-DaDa opened this issue Oct 25, 2024 · 0 comments
Open

Taro.requirePlugin执行报错 #16743

Qi-DaDa opened this issue Oct 25, 2024 · 0 comments
Labels
F-react Framework - React T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x

Comments

@Qi-DaDa
Copy link

Qi-DaDa commented Oct 25, 2024

相关平台

支付宝小程序

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

复现步骤

直接调用Taro.requirePlugin方法

期望结果

可以正常引入支付宝小程序插件

实际结果

方法报错

[APPX][Page] subPackageAutowash/pages/washA0/index/0 CallMethod error Object(...) is not a function/TypeError: Object(...) is not a function
at TaroElement.getPayPoint (http://127.0.0.1:49938/subPackageAutowash/index.worker.js:6226:88)
at TaroElement.dispatchEvent (http://127.0.0.1:49938/index.worker.js?hash=4fd2a2b6&from_service_worker=true&url=file%3A%2F%2F%2Fhttp%3A%2F%2F127.0.0.1%3A49938%2Findex.html&page=subPackageAutowash%2Fpages%2FwashA0%2Findex%3FdeviceNo%3DYGL1754&appId=2019090266794548&chInfo=ch_scan&ap_framework_sceneId=1011&enablePolyfillWorker=true&ap_framework_sceneId=1011:79209:35)
at Object.eventHandler [as eh] (http://127.0.0.1:49938/index.worker.js?hash=4fd2a2b6&from_service_worker=true&url=file%3A%2F%2F%2Fhttp%3A%2F%2F127.0.0.1%3A49938%2Findex.html&page=subPackageAutowash%2Fpages%2FwashA0%2Findex%3FdeviceNo%3DYGL1754&appId=2019090266794548&chInfo=ch_scan&ap_framework_sceneId=1011&enablePolyfillWorker=true&ap_framework_sceneId=1011:77531:16)
at e.invokePublicMethod (https://appx/af-appx.worker.min.js:6:653700)
at https://appx/af-appx.worker.min.js:6:856575
at e.wrapTapMark (https://appx/af-appx.worker.min.js:6:743225)
at e.invokeHostTargetMethod (https://appx/af-appx.worker.min.js:6:856543)
at e.onReceiveMethodCall (https://appx/af-appx.worker.min.js:6:854559)
at e.onMessage (https://appx/af-appx.worker.min.js:6:853131)
at e.executeFunctionAsync (lyra-resource://runtime.bundle.js:1:401234)

环境信息

Taro v3.6.28


  Taro CLI 3.6.28 environment info:
    System:
      OS: macOS 14.6.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 12.20.0 - ~/.nvm/versions/node/v12.20.0/bin/node
      Yarn: 1.22.22 - /opt/homebrew/bin/yarn
      npm: 6.14.8 - ~/.nvm/versions/node/v12.20.0/bin/npm
    npmPackages:
      @tarojs/cli: 3.2.0-canary.8 => 3.2.0-canary.8
      @tarojs/components: 3.2.0-canary.8 => 3.2.0-canary.8
      @tarojs/components-rn: 3.2.0-canary.8 => 3.2.0-canary.8
      @tarojs/mini-runner: 3.2.0-canary.8 => 3.2.0-canary.8
      @tarojs/react: 3.2.0-canary.8 => 3.2.0-canary.8
      @tarojs/rn-runner: 3.2.0-canary.8 => 3.2.0-canary.8
      @tarojs/runtime: 3.2.0-canary.8 => 3.2.0-canary.8
      @tarojs/taro: 3.2.0-canary.8 => 3.2.0-canary.8
      @tarojs/taro-rn: 3.2.0-canary.8 => 3.2.0-canary.8
      @tarojs/webpack-runner: 3.2.0-canary.8 => 3.2.0-canary.8
      babel-preset-taro: 3.2.0-canary.8 => 3.2.0-canary.8
      eslint-config-taro: 3.2.0-canary.8 => 3.2.0-canary.8
      react: ^16.13.1 => 16.14.0
      react-native: 0.63.2 => 0.63.2
      taro-ui: ^3.0.0-alpha.3 => 3.0.0-alpha.10
@TheKonka TheKonka added V-3 Version - 3.x F-react Framework - React T-alipay Target - 编译到支付宝小程序 labels Oct 25, 2024
This was referenced Oct 26, 2024
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

2 participants