Taro: Taro.chooseImage报错

Created on 18 Mar 2019  ·  4Comments  ·  Source: NervJS/taro

问题描述
使用Taro的选择图片方法,或taro-ui的AtImagePicker组件,均报错,“Uncaught TypeError: _taroH2.default.chooseImage is not a function“

复现步骤
import Taro, { Component } from '@tarojs/taro'
Taro.chooseImage()

期望行为
[这里请用简洁清晰的语言描述你期望的行为]

报错信息
image

系统信息
$ taro info
� Taro v1.2.20

Taro CLI 1.2.20 environment info:
System:
OS: Windows 7
Binaries:
Node: 10.15.0 - D:\Program Files\nodejs\node.EXE
Yarn: 1.6.0 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.4.1 - D:\Program Files\nodejs\npm.CMD

  • 报错平台 [h5]

补充信息
依赖均更新到最新版本

bug

Most helpful comment

Close via e496d2f9b80d996ba38d0f8c201c3bd46ad7072e.

All 4 comments

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

CC @Littly

Close via e496d2f9b80d996ba38d0f8c201c3bd46ad7072e.

Close via e496d2f.

这个是怎么解决了呢?

Was this page helpful?
0 / 5 - 0 ratings