-
-
Notifications
You must be signed in to change notification settings - Fork 375
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
How to using async/await with mobx ? [SLOVED 🎉 ] #333
Comments
This doesn't seem like an issue with |
@reznord i'm run in dev mode it work normal, but error when i build ? |
Can you try running Next time while opening an issue please follow the template. |
Yes, but it still error |
🎉 Yeah , i sloved this problem . 😄 let Plugin = helpers.getLoadersByName(config, "babel-loader")[0].rule.options.plugins;
//Enable async
Plugin.push("transform-regenerator");
Plugin.push([
"transform-runtime",
{
helpers: false,
polyfill: false,
regenerator: true
}
]); Plz close this issue 🛩 |
Man, this issue and its solution should definitely be somewhere in the docs... I've been pulling my hair off on this error : "regeneratorruntime is not defined" for the last couple hours and couldnt find a way to fix that with preact... |
I'm using mobx and i want to using async/await .
When i build it show error
This is my async fn
The text was updated successfully, but these errors were encountered: