-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
h5调试chooseImage模拟报错 #2758
Comments
欢迎提交 Issue~ 如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏 如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。 Good luck and happy coding~ |
同样的错误,泪奔中~ |
贴一下使用代码 |
代码里并没有使用chooseImage这个方法。看了下应该是挂载在Taro对象上的。引入方式很常规
这是我的项目依赖,看下是不是和这个有关?
目前我先降级回1.2.3了,因为正在联调。。 |
升级的话 cli 和项目依赖要保持一致 |
我是在项目里执行的npm update,是指需要单独升级cli的版本么? |
你在项目里执行 npm update 只会升级本地项目依赖,安装的 taro cli 也要升级啊 |
这有点反逻辑啊。。并不是大版本的升级,居然强关联么。。 |
那你可以把 cli 安装到本地啊,哪里反逻辑? |
我是安装到本地的。。 |
那你检查一下版本有没有对上 |
👽 Taro v1.2.24 Taro CLI 1.2.24 environment info: 似乎cli最新版本就是1.2.24? |
项目依赖和全局cli版本保持一致了,仍然会报这个错,今天刚升级了1.2.25才出现这个问题的 |
👽 Taro v1.2.25
Taro CLI 1.2.25 environment info:
System:
OS: Windows 10
Binaries:
Node: 10.13.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.12.3 - D:\Alike\yarn\bin\yarn.CMD
npm: 6.9.0 - ~\AppData\Roaming\npm\npm.CMD
/* 未支持的api */
export * from './unsupportedApi'
/* 已实现api */
export * from './canvas'
export * from './createAnimation'
export * from './createSelectorQuery'
export * from './imageUtils'
export * from './interactive'
export * from './navigationBar'
export * from './others'
export * from './pullDownRefresh'
export * from './request'
export * from './storage'
export * from './system'
export * from './tabBar'
export * from './videoUtils' // Error: Uncaught TypeError: Cannot redefine property: chooseImage
export * from './webSocket'
export * from './privateApis' 解决方法: 👽 Taro v1.2.23
Taro CLI 1.2.23 environment info:
System:
OS: Windows 10
Binaries:
Node: 10.13.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.12.3 - D:\Alike\yarn\bin\yarn.CMD
npm: 6.9.0 - ~\AppData\Roaming\npm\npm.CMD |
是个bug 1.2.26已修复~ |
问题描述
chooseImage模拟报错
复现步骤
启动h5调试就报错了
期望行为
[这里请用简洁清晰的语言描述你期望的行为]
报错信息
图片好像报错了。
Uncaught TypeError: Cannot redefine property: chooseImage
系统信息
补充信息
The text was updated successfully, but these errors were encountered: