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

字节跳动真机调试报错:regeneratorRuntime is not defined; #4758

Closed
zero578 opened this issue Nov 4, 2019 · 3 comments
Closed

字节跳动真机调试报错:regeneratorRuntime is not defined; #4758

zero578 opened this issue Nov 4, 2019 · 3 comments
Assignees

Comments

@zero578
Copy link

zero578 commented Nov 4, 2019

问题描述
字节跳动真机调试报错:regeneratorRuntime is not defined;

复现步骤
[复现问题的步骤]
taro run dev:tt。再真机上调试报错 如下

image

app.jsx中也引入了 import '@tarojs/async-await' 代码

尝试再编译后的代码中也是能查看到global中是有regeneratorRuntime属性的(如下图),但是直接打印regeneratorRuntime就报上图错误, 也无法再组件中正常使用regeneratorRuntime。

image

期望行为
能正常再字节跳动小程序上运行

报错信息

[TMA][ERROR][RUNTIME] jsEngineScriptError
regeneratorRuntime is not defined;onAppRoute
ReferenceError: regeneratorRuntime is not defined
....

系统信息
Taro CLI 1.3.19 environment info:
System:
OS: Windows 10
Binaries:
Node: 8.16.2 - D:\Program Files (x86)\nodejs\node.EXE
Yarn: 1.19.1 - ~\AppData\Roaming\npm\yarn.CMD
npm: 6.4.1 - D:\Program Files (x86)\nodejs\npm.CMD。

  • 操作系统: [ Windows 10,华为p10plus]
  • Taro 版本 [ v1.3.19 ]
  • Node.js 版本 [v10+ ]
  • 报错平台 [tt]
@taro-bot
Copy link

taro-bot bot commented Nov 4, 2019

欢迎提交 Issue~

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

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

Good luck and happy coding~

@taro-bot
Copy link

taro-bot bot commented Nov 4, 2019

CC @Chen-jj

@Chen-jj
Copy link
Contributor

Chen-jj commented Nov 5, 2019

same issue #4382

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

3 participants