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

@tarojs/plugin-inject 在3.3.0 无法正常使用 #9783

Closed
TomVista opened this issue Jul 14, 2021 · 0 comments · Fixed by #9841 or #9858
Closed

@tarojs/plugin-inject 在3.3.0 无法正常使用 #9783

TomVista opened this issue Jul 14, 2021 · 0 comments · Fixed by #9841 or #9858
Labels
F-react Framework - React T-swan Target - 编译到百度小程序 V-3 Version - 3.x
Milestone

Comments

@TomVista
Copy link
Contributor

相关平台

百度小程序

复现仓库

https://github.com/TomVista/taro-ks.git
小程序基础库: 3.310.35
使用框架: React

复现步骤

npm i
npm run dev:swan
百度开发工具

 plugins: [
     ['@tarojs/plugin-inject', {
      asyncApis: ['requestPolymerPayment']
    }]
  ],

期望结果

可以通过Taro.requestPolymerPayment 调用

实际结果

无法通过百度开发者工具编译

环境信息


  Taro CLI 3.3.0 environment info:
    System:
      OS: macOS 11.4
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 16.1.0 - /usr/local/opt/nvm/versions/node/v16.1.0/bin/node
      Yarn: 1.22.10 - /usr/local/opt/nvm/versions/node/v16.1.0/bin/yarn
      npm: 7.19.1 - /usr/local/opt/nvm/versions/node/v16.1.0/bin/npm
    npmPackages:
      @tarojs/components: 3.3.0 => 3.3.0 
      @tarojs/mini-runner: 3.3.0 => 3.3.0 
      @tarojs/react: 3.3.0 => 3.3.0 
      @tarojs/runtime: 3.3.0 => 3.3.0 
      @tarojs/taro: 3.3.0 => 3.3.0 
      @tarojs/webpack-runner: 3.3.0 => 3.3.0 
      babel-preset-taro: 3.3.0 => 3.3.0 
      eslint-config-taro: 3.3.0 => 3.3.0 
      react: ^17.0.0 => 17.0.2 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-swan Target - 编译到百度小程序 V-3 Version - 3.x
Projects
None yet
2 participants