. Advertisement .
..3..
. Advertisement .
..4..
When I work with React and Parcel bundler, I get the following error: “uncaught referenceerror regeneratorruntime is not defined”. The issue was apparent when I had added an async function
Here is detail:
......... ADVERTISEMENT .........
..8..
The following solution has helped me, below what you should follow:
1/ Install babel-plugin-transform-runtime
this is to support the async, and then
2/ Add the runtime plugin in your .babelrc file
Install regenerator-runtime
Update webpack file
Require import ‘regenerator-runtime/runtime’ at the top of the file that you’re using async function