-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
could not run well with async/await(regeneratorRuntime actually) #5559
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
Comments
Can you explain what is happening, what the error is that you got? |
Sorry, but this is related to babel config not to Vue |
@posva Before migrating to new SSR solution, it worked just fine by using What means the new SSR solution breaks |
@JounQin this is a change caused by |
@JounQin after thinking about it, I think the 2.3.0 behavior should be preserved. The bundle should have a separate |
@yyx990803 Thanks for your explanation and whitelisting |
@JounQin Do you have a code example? I don't really understand what I have to do to make this work correctly. Are you using |
@jonaskuiler After Vue 2.3.2, there is no need to do that if you are still using Of course, if you running with Vue 2.3.0 or |
Version
2.3.0
Reproduction link
https://github.com/JounQin/vue-hackernews-2.0/blob/async-await/src/store/actions.js
Steps to reproduce
remove L1 and L9
What is expected?
I've add 'regenerator-runtime/runtime' in client and server entry, which should register
global.regeneratorRuntime
already.What is actually happening?
throw Error
ReferenceError: regeneratorRuntime is not defined
every timeIt worked before
vue-server-renderer
2.3.0The text was updated successfully, but these errors were encountered: