Skip to content
This repository was archived by the owner on May 15, 2019. It is now read-only.
This repository was archived by the owner on May 15, 2019. It is now read-only.

Error deploying when using babel #318

Open
@ryrebs

Description

@ryrebs

I'm using express and functions and I got an error:

functions: Error from emulator. mod.hasOwnProperty is not a function

when I deploy my functions locally. I'm using babel to use async/await:

.babelrc:

{
  "plugins": [
    "@babel/plugin-proposal-class-properties",
    [
      "@babel/plugin-transform-runtime",
      {
        "absoluteRuntime": false,
        "corejs": false,
        "helpers": true,
        "regenerator": true,
        "useESModules": false
      }
    ]
  ],
  "presets": ["@babel/preset-env", "@babel/preset-flow"]
}

When I remove this in babel compilation, the error is:

ReferenceError: regeneratorRuntime is not defined

Any help or ideas how to resolve this problem?

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