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

async/await syntax #34

Open
texas697 opened this issue Aug 4, 2017 · 3 comments
Open

async/await syntax #34

texas697 opened this issue Aug 4, 2017 · 3 comments
Labels

Comments

@texas697
Copy link

texas697 commented Aug 4, 2017

I am using async/await syntax in my project. runs fine with PORT=8080 npm run dev but when i try to run via docker i get error
ReferenceError: regeneratorRuntime is not defined
do I need to modify babel?

@escobar5
Copy link

Having the same problem, not via docker, just running in production

@developit
Copy link
Owner

Hi there - you need to import regenerator. Most people do this by adding this line to src/index.js after running npm i -S babel-runtime:

import 'babel-runtime';

@giiska
Copy link

giiska commented Dec 12, 2017

You need babel-plugin-transform-runtime: https://stackoverflow.com/a/36821986/1252528

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants