kentcdodds / kentcdodds/split-guide

Missing package `babel-runtime/core-js/promise`. Missing dependency?

Open
#23 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
107
Forks
17
PR merge metrics
No merged PRs in 30d

Description

### Issue:

I updated `split-guide` in one of my projects and got an error trying to run it. Couldn't find `babel-runtime/core-js/promise`.

`split-guide/dist/bin/index.js`

```js
var _promise = require('babel-runtime/core-js/promise');
```

### Workaround:

Adding a dev dependency of `babel-runtime` solved the issue for me.

### Other notes:

I tried to make a PR to solve this, but it seemed like simply adding that dependency was not the right answer, and perhaps it had something to do with "`kcd-scripts`", which seems like it's pretty far behind the latest version. I'm not familiar with any of that, so I had to bow out.

Contributor guide

Open the contributing guide

Research direction

Start by inspecting split-guide/dist/bin/index.js and the package dependencies related to babel-runtime and kcd-scripts. Reproduce the missing-module error without the workaround, then verify that the installed package can run successfully without a manual dev dependency.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.