Skip to content

Emitted code uses regeneratorRuntime #7

Closed
@LinusU

Description

@LinusU

The emitted code that this module publishes, uses regeneratorRuntime which makes it fail without that. Because of this, you cannot use this module out of the box on e.g. Node.js 10.x.

node_modules/stream-to-async-iterator/stream-to-async-iterator.js:134
            var _ref = _asyncToGenerator(regeneratorRuntime.mark(function _callee() {
                                         ^

ReferenceError: regeneratorRuntime is not defined
    at node_modules/stream-to-async-iterator/stream-to-async-iterator.js:134:42
    at node_modules/stream-to-async-iterator/stream-to-async-iterator.js:197:10
    at Object.<anonymous> (node_modules/stream-to-async-iterator/stream-to-async-iterator.js:246:2)
    at Module._compile (internal/modules/cjs/loader.js:702:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
    at Module.load (internal/modules/cjs/loader.js:612:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
    at Function.Module._load (internal/modules/cjs/loader.js:543:3)
    at Module.require (internal/modules/cjs/loader.js:650:17)
    at require (internal/modules/cjs/helpers.js:20:18)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions