Skip to content

Uncaught ReferenceError: regeneratorRuntime is not defined #391

@yspreen

Description

@yspreen

I know this error was addressed before, but I encountered it because of a completely different reason, and it took me a few hours to figure out why this happened specifically.

If you don't call

editor.on("event", async () => {  });

with at least one valid event, the exception is thrown:

rete.esm.js?f5d5:413 Uncaught ReferenceError: regeneratorRuntime is not defined
    at eval (rete.esm.js?f5d5:413)
    at eval (rete.esm.js?f5d5:437)
    at eval (rete.esm.js?f5d5:477)
    at Module../node_modules/rete/build/rete.esm.js (chunk-vendors.js:13356)
    at __webpack_require__ (app.js:786)
    at fn (app.js:151)
    at eval (cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/eslint-loader/index.js?!./src/components/GraphEditor/comp.js?vue&type=script&lang=js&:15)
    at Module../node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/eslint-loader/index.js?!./src/components/GraphEditor/comp.js?vue&type=script&lang=js& (app.js:923)
    at __webpack_require__ (app.js:786)
    at fn (app.js:151)

Even just having

import Rete from "rete";
export default {};

causes this error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions