kriasoft / kriasoft/babel-starter-kit
Cannot find module 'babel-runtime'
- Dominant language
- JavaScript
- Stars
- 544
- Forks
- 119
- PR merge metrics
- No merged PRs in 30d
Description
Problem described [here](https://github.com/rollup/rollup/issues/1141) and [here](https://github.com/rollup/rollup/issues/1141).
It seems [`babel-preset-es2015-rollup`](https://github.com/rollup/babel-preset-es2015-rollup) you used is not maintained any more.
# Way to fix
Replace the lib with [`babel-plugin-external-helpers`](http://babeljs.io/docs/plugins/external-helpers/)
and add this to package.json:
```
{
"presets": [
["es2015", { "modules": false }]
],
"plugins": [
"external-helpers"
]
}
```
---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/43514361-cannot-find-module-babel-runtime?utm_campaign=plugin&utm_content=tracker%2F18782092&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F18782092&utm_medium=issues&utm_source=github).
Contributor guide
Research direction
Start by inspecting package.json and the Babel configuration, then reproduce the missing babel-runtime error described in the linked Rollup issues. Replace the unmaintained Babel preset as proposed, configure external helpers, and verify that the project no longer fails to resolve babel-runtime.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- babel, javascript
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100