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

ReferenceError: _asyncToGenerator2 is not defined #75

Open
itwhat126 opened this issue Mar 5, 2020 · 1 comment
Open

ReferenceError: _asyncToGenerator2 is not defined #75

itwhat126 opened this issue Mar 5, 2020 · 1 comment

Comments

@itwhat126
Copy link

image
image
before serialize code:
image
the reason is "async"?
how to solve it

@okuryu
Copy link
Collaborator

okuryu commented Mar 5, 2020

Do you have any repro? I guess _asyncToGenerator2 is generated code by Babel not serialize-javascript. The serialize-javascript supports async functions as follows.

> serialize(async function(){})
'async function(){}'

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

No branches or pull requests

2 participants