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

Uncaught ReferenceError: regeneratorRuntime is not defined #29

Open
subharb opened this issue Dec 27, 2019 · 1 comment
Open

Uncaught ReferenceError: regeneratorRuntime is not defined #29

subharb opened this issue Dec 27, 2019 · 1 comment

Comments

@subharb
Copy link

subharb commented Dec 27, 2019

It works when the component I create is a dumb component, but when I try to create a more complex react component I get "Uncaught ReferenceError: regeneratorRuntime is not defined"
I've been searching and it seems there's an issue with babel, but I still don't understand which.

Could lend a hand on this?

@jmfrancois
Copy link

This is not the lib fault. This is your build process.

IN your app

npm i --save regenerator-runtime

add the following import in your index.js

import "regenerator-runtime/runtime";

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