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

Library depends on global regeneratorRuntime #13

Open
Teal-labs-developer opened this issue May 27, 2020 · 2 comments
Open

Library depends on global regeneratorRuntime #13

Teal-labs-developer opened this issue May 27, 2020 · 2 comments

Comments

@Teal-labs-developer
Copy link

The package expects regeneratorRuntime to be present globally in the project it is imported into. Gives this error -
Screenshot 2020-05-27 at 9 40 15 PM

@kubk
Copy link

kubk commented Dec 3, 2020

Quick fix:

npm i regenerator-runtime

Add this line to the very top of your index file:

window['regeneratorRuntime'] = require("regenerator-runtime/runtime");

@kubk
Copy link

kubk commented Dec 3, 2020

@cleandersonlobo I can make a PR to include it in the library

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

2 participants