jaredpalmer / jaredpalmer/backpack
Regenerator Runtime is not defined with no configuration
- 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
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