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

chooseMedia不可用 #7748

Closed
yz1311 opened this issue Sep 27, 2020 · 3 comments
Closed

chooseMedia不可用 #7748

yz1311 opened this issue Sep 27, 2020 · 3 comments
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@yz1311
Copy link

yz1311 commented Sep 27, 2020

相关平台

微信小程序

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

复现步骤

 let result = await Taro.chooseMedia({
                count: 1
            });

期望结果

正常运行

实际结果

TypeError: _tarojs_taro__WEBPACK_IMPORTED_MODULE_3___default.a.chooseMedia is not a function

环境信息

  Taro CLI 3.0.13 environment info:
    System:
      OS: macOS 10.15.5
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 12.9.1 - /usr/local/bin/node
      Yarn: 1.22.4 - ~/.yarn/bin/yarn
      npm: 6.10.3 - /usr/local/bin/npm
    npmPackages:
      @tarojs/components: 3.0.13 => 3.0.13 
      @tarojs/mini-runner: 3.0.13 => 3.0.13 
      @tarojs/react: 3.0.13 => 3.0.13 
      @tarojs/runtime: 3.0.13 => 3.0.13 
      @tarojs/taro: 3.0.13 => 3.0.13 
      @tarojs/webpack-runner: 3.0.13 => 3.0.13 
      babel-preset-taro: 3.0.13 => 3.0.13 
      eslint-config-taro: 3.0.13 => 3.0.13 
      react: ^16.10.0 => 16.13.1 
      taro-ui: ^3.0.0-alpha.3 => 3.0.0-alpha.3 
    npmGlobalPackages:
      typescript: 3.7.4

@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Sep 27, 2020
@dobeweb
Copy link

dobeweb commented Sep 30, 2020

坑啊

@esdotzed
Copy link

为啥关了啊。。。

@iSoftstone-HOS
Copy link

Taro版本问题,Taro3.0.21版本支持且保证保持 @tarojs/cli 的版本与各端依赖版本一致

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

5 participants