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

将原有项目转字节跳动小程序,运行报错:Uncaught ReferenceError: regeneratorRuntime is not defined #2419

Closed
beehoo opened this issue Mar 12, 2019 · 8 comments
Labels
question Further information is requested

Comments

@beehoo
Copy link

beehoo commented Mar 12, 2019

问题描述
我将原有的taro项目转字节跳动小程序,编译后运行报:Uncaught ReferenceError: regeneratorRuntime is not defined

复现步骤
编译完成后运行就报错

期望行为
正常运行

报错信息

Uncaught ReferenceError: regeneratorRuntime is not defined

系统信息

  • 操作系统: [macOS 10.14.3]
  • Taro 版本 [v.1.2.17]
  • Node.js 版本 [v10.0.0]
  • 报错平台 [tt]
@taro-bot
Copy link

taro-bot bot commented Mar 12, 2019

欢迎提交 Issue~

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

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

Good luck and happy coding~

@yuche
Copy link
Contributor

yuche commented Mar 13, 2019

https://nervjs.github.io/taro/docs/async-await.html#docsNav

@zhy8023
Copy link

zhy8023 commented Mar 14, 2019

我遇到了同样的问题,请问你们是如何解决的?

@luckyadam
Copy link
Member

@zhy8023 楼上已经贴了文档

@luckyadam luckyadam added question Further information is requested answered labels Mar 15, 2019
@taro-bot
Copy link

taro-bot bot commented Mar 15, 2019

Hello~

您的问题楼上已经有了确切的回答,如果没有更多的问题这个 issue 将在 15 天后被自动关闭。

如果您在这 15 天中更新更多信息自动关闭的流程会自动取消,如有其他问题也可以发起新的 Issue。

Good luck and happy coding~

@daijiaoluoxinghui
Copy link

daijiaoluoxinghui commented Mar 18, 2019

我遇到的不一样
image
已经按照上面的链接
image
image
请问怎么解决

@zhy8023
Copy link

zhy8023 commented Mar 18, 2019

@zhy8023 楼上已经贴了文档

我解决啦,我的问题运行报错Uncaught ReferenceError: regeneratorRuntime is not defined是因为没有配置project.tt.json导致

@taro-bot taro-bot bot removed the to be closed label Mar 20, 2019
@taro-bot taro-bot bot closed this as completed Mar 20, 2019
@lixiao258
Copy link

project.tt.json
如何配置啊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

6 participants