Parcel - Uncaught ReferenceError: regeneratorRuntime

· Tech · No AI

I’ve migrated an application from create-react-app to Parcel (v1) which contains await/async.

I’ve got this error during the build process:

Uncaught ReferenceError: regeneratorRuntime

How to fix it? You need @babel/plugin-transform-runtime with regenerator=True (it’s True by default, documentation).

Terminal window
npm install --save-dev @babel/runtime @babel/plugin-transform-runtime

Create or update .babelrc file.

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

It should work now.

uptime
8,215 days · since 2004
posts
294 · busiest 2026 (64)
words
~143,065 · ~10 h read
topics
tech 239 · personal 55
langs
en 229 · pl 65
written
211 by hand · 83 AI-assisted
projects
3
build
ca50768 · 2026-06-30