jaredpalmer / jaredpalmer/backpack

Regenerator Runtime is not defined with no configuration

Open
#92 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4.4k
Forks
164
PR merge metrics
No merged PRs in 30d

Description

Hey, Im still getting a "ReferenceError regenerator runtimes is not defined" when using backpack out of the box. Im not specifying any custom `.babelrc` or `backpack.config.js` files and im simply trying to use an `async/await` function in my `src/index.js` file but with no luck Any ideas on why it wouldn't be working?

```javascript
async function foo() {
await Product.find({_id: 1});
}
```

Contributor guide

Open the contributing guide

Research direction

Start with src/index.js and reproduce the reported async/await example using Backpack's default configuration. Read the generated build and default Babel-related configuration to determine why the regenerator runtime is unavailable; done means the example runs without a custom .babelrc or backpack.config.js.

Written by the indexing model from the issue text.

Assessment

Tech stack
babel, javascript, node.js
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.