Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

Using ^0.6.0-beta.2 throws error: regeneratorRuntime is not defined #83

Closed
monsteronfire opened this issue Apr 13, 2017 · 4 comments
Closed

Comments

@monsteronfire
Copy link

monsteronfire commented Apr 13, 2017

Hello :)

The first app I generated with the --web-component flag was using @glimmer/application-pipeline": "^0.5.2", and the use of async didn't cause any problems at all.

But I realised that the app I generated today (also using the --web-component flag) uses @glimmer/application-pipeline": "^0.6.0-beta.2", and async no longer works. It throws the following error:

Uncaught ReferenceError: regeneratorRuntime is not defined

I'm not sure if this is the right place to file this issue, but as far as I can tell, the only change was the version of @glimmer/application-pipeline.

@rwjblue
Copy link
Member

rwjblue commented Apr 13, 2017

We changed things around a bit and now (as of 0.6.x) we emit ES5 code even for web component builds. This means async / await is being transpiled to use regenerator runtime.

Unfortunately, at this time, there is no simple way of adding back the babel polyfills (or just regenerator runtime). I will try to get this fixed today.

@monsteronfire
Copy link
Author

Alright. I'll use ^0.5.2 to continue tinkering. :)

Thanks for the quick reply, @rwjblue. I'm enjoying exploring glimmer so far. The team's doing a great job! 💯

@rmzr7
Copy link

rmzr7 commented Jun 1, 2017

@rwjblue any updates?

@locks
Copy link
Contributor

locks commented Jun 4, 2017

Instructions now at https://github.com/glimmerjs/glimmer-application-pipeline#enabling-use-of-async-await-in-components.

@locks locks closed this as completed Jun 4, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants