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

auto-docs导致Taro下cloud namespace 导出失效 #5195

Closed
Inori-Lover opened this issue Dec 26, 2019 · 4 comments
Closed

auto-docs导致Taro下cloud namespace 导出失效 #5195

Inori-Lover opened this issue Dec 26, 2019 · 4 comments
Assignees

Comments

@Inori-Lover
Copy link

Inori-Lover commented Dec 26, 2019

问题描述

升级1.3.33后Taro的cloud导出失效(这个错误理应1.3.32也能看到)

复现步骤

升级taro依赖为1.3.33后vs code下使用ts书写Taro.cloud即可看到报错
image

期望行为

cloud正确地在Taro下导出

报错信息

Property 'cloud' does not exist on type 'typeof Taro'.ts(2339)

补充信息

简单追查了一下应该是在这个commit引入的错误,将init等函数分到interface而不是namespace里,手动修改相关定义为namespace之后也确实消除了错误

image

@taro-bot
Copy link

taro-bot bot commented Dec 26, 2019

欢迎提交 Issue~

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

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

Good luck and happy coding~

@taro-bot
Copy link

taro-bot bot commented Dec 26, 2019

CC @ZakaryCode

@dpyzo0o
Copy link

dpyzo0o commented Dec 30, 2019

这个issue预计什么时候修复?

@Garfield550
Copy link
Collaborator

已经修复但是没有发布版本,等待下一个版本吧

jiangzm pushed a commit to jiangzm/taro that referenced this issue Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants