react-web-component icon indicating copy to clipboard operation
react-web-component copied to clipboard

Uncaught ReferenceError: regeneratorRuntime is not defined

Open subharb opened this issue 5 years ago • 1 comments

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?

subharb avatar Dec 27 '19 06:12 subharb

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";

jmfrancois avatar Mar 19 '20 08:03 jmfrancois