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

Upgrading from 0.21.3 to 0.22.2 errors with regeneratorRuntime is not defined #355

Open
josephlbarnett opened this issue Jun 12, 2020 · 6 comments

Comments

@josephlbarnett
Copy link

When upgrading vue-cli-plugin-apollo from 0.21.3 to 0.22.2, my project started throwing the following error when loaded:
regeneratorRuntime is not defined

Adding import "regenerator-runtime/runtime"; to main.ts fixes the problem, but that was not needed in 0.21.3?

@dhritzkiv
Copy link

Experiencing the same issue here. Same upgrade path.

@mkuehn
Copy link

mkuehn commented Sep 23, 2020

I can't fully remove my usage of async/await in App.js using 0.22.2 without also adding import 'regenerator-runtime/runtime' in my main.js.

Downgrading to 0.21.3 works fine without async/await in my code and without this additional import.

@dhritzkiv
Copy link

Also mentioned in #452, with more details, and fixed in #453

@dannickstark
Copy link

dannickstark commented Oct 6, 2021

I have the same problem.

I tryed the solution hier: https://stackoverflow.com/questions/60435086/using-the-async-await-pattern-in-vue-js

But i have something like that:

image

@dhritzkiv
Copy link

@dannickstark I was eventually able to resolve it by updating all my dependencies (specifically babel/core-js), then deleting my node_modules directory, and installing everything from npm again.

Not sure if it'll help you, but worth a shot!

@johannespfrang
Copy link

johannespfrang commented Aug 19, 2024

Some time ago I've published vue-cli-plugin-apollo-without-regenerator-runtime to. Feel free to use/pin that.

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

5 participants