0

I'm getting this error: regeneratorRuntime is not defined

My babel.config.js file:

https://www.codepile.net/pile/XqDxeAq6

My webpack.config.js file

https://www.codepile.net/pile/5ndebjVq

1 Answers1

0

Install the runtime dependency:

npm i --save-dev @babel/plugin-transform-runtime

Add the plugin to your babel configuration:

{
  "plugins": ["@babel/plugin-transform-runtime"]
}

Uncaught ReferenceError: regeneratorRuntime is not defined in React

Ross Sheppard
  • 850
  • 1
  • 6
  • 14