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

regeneratorRuntime is not defined #17

Closed
abbychau opened this issue Oct 8, 2019 · 3 comments
Closed

regeneratorRuntime is not defined #17

abbychau opened this issue Oct 8, 2019 · 3 comments

Comments

@abbychau
Copy link

abbychau commented Oct 8, 2019

I have found a similar topic here.
Refer : #15

is regenerator-runtime actually needed for this componenent?
Screen Shot 2019-10-08 at 12 00 28

@Mixelated
Copy link

same problem here

@anismomin
Copy link

npm i --save regenerator-runtime

add this in App.vue

const regeneratorRuntime = require("regenerator-runtime");

resolve my issue for now

@adi518
Copy link
Owner

adi518 commented Oct 20, 2019

It's using async/await syntax and apparently some consumers have issues with it. I need to try and look at this again, but for the time being it looks like there's a solution. I'm contemplating adding regenerator-runtime as a peer dependency, but unless everyone has this issue, it might be redundant. Since I can't tell how many users experience this, we'll skip it for now, but I might add a note in the Readme.

As far as syntax goes, I'd probably try this, at the top of my main.js, because as far as responsibility goes, that's where you usually initialize libraries and polyfills.

So,

npm install --save regenerator-runtime

And then:

import "regenerator-runtime";

P.S.: This is worth a read.

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

4 participants