Skip to content

Error when using generator functions #547

@zhaoyao91

Description

@zhaoyao91

Current Behavior

after add some code with generator, it generates some code which lead to

Uncaught ReferenceError: regeneratorRuntime is not defined

I tried to solve it with microsoft/TypeScript-Babel-Starter#26 (comment), but it gave me other error:

(babel plugin) Error: Runtime helpers are not enabled. Either exclude the transform-runtime Babel plugin or pass the `runtimeHelpers: true` option. See https://github.com/rollup/rollup-plugin-babel#configuring-babel for more information

Your environment

Software Version(s)
TSDX 0.12.3
TypeScript 3.8.2
Browser chrome
npm/Yarn yarn 1.21.1
Node 12.14.1
Operating System mac

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions