Skip to content

Instantly share code, notes, and snippets.

@andyshora
Created July 31, 2020 15:02
Show Gist options
  • Save andyshora/9df78a722e5c498c4b5b62a2a53cb421 to your computer and use it in GitHub Desktop.
Save andyshora/9df78a722e5c498c4b5b62a2a53cb421 to your computer and use it in GitHub Desktop.
"regeneratorRuntime is not defined" FIX

Error: regeneratorRuntime is not defined

When: When installing a package (packaged for modern browsers, i.e. no polyfills) and added to a project supporting older browsers.

Solution: Install regenerator-runtime package and add the following line to main entry file:

import 'regenerator-runtime/runtime'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment