Uncaught Referenceerror: Regeneratorruntime Is Not Defined In React 17, Webpack 5 While Making Api Calls Through Actions
Having this error Uncaught ReferenceError: regeneratorRuntime is not defined when trying to make a api call using superagent. Currently i am using react 17, webpack 5 along with cs
Solution 1:
For Babel 7, install these two dependencies:
npm install --save@babel/runtime
npm install --save-dev @babel/plugin-transform-runtime
And, in .babelrc, add:
{
"presets": ["@babel/preset-env"],
"plugins": [
["@babel/plugin-transform-runtime"]
]
}
Post a Comment for "Uncaught Referenceerror: Regeneratorruntime Is Not Defined In React 17, Webpack 5 While Making Api Calls Through Actions"