Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react ReferenceError: regeneratorRuntime is not defined

// yarn add @babel/plugin-transform-runtime --dev
// yarn add @babel/runtime

//.babelrc

"plugins": [
    ["@babel/plugin-transform-runtime",
      {
        "regenerator": true
      }
    ]
  ],
Source by github.com #
 
PREVIOUS NEXT
Tagged: #react #regeneratorRuntime #defined
ADD COMMENT
Topic
Name
5+6 =