Babel - RegeneratorRuntime Is Not Defined


2 min read

ReferenceError: regeneratorRuntime is not defined:

To fix the error, add the following to .babelrc:

1{
2 "presets": [
3 [
4 "env", {
5 "targets": {
6 "node": "current"
7 }
8 }
9 ]
10 ]
11 }

Helpful Resources:

Async functions producing an error "ReferenceError: regeneratorRuntime is not defined"

Previous post:
JavaScript - Async Await
Next post:
JavaScript - Convert A Date Object To A String

Discussion