benjycui / benjycui/jsonml-to-react-element

Babel configuration in package.json interferes with Webpack

Open
#3 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
41
Forks
4
PR merge metrics
No merged PRs in 30d

Description

I'm running Webpack with Babel in my project, but not using the ES2015 preset. Webpack gives me this error:

```
ERROR in ./node_modules/jsonml-to-react-element/lib/index.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Couldn't find preset "es2015" relative to directory "/Users/reidar/projects/djupvik.digital/node_modules/jsonml-to-react-element"
```

I believe this error message is because of the Babel configuration in the bundled `package.json`:

```
"babel": {
"presets": [
"es2015"
]
},
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by inspecting the bundled package.json and the Babel configuration referenced in the issue, then reproduce the Webpack build with babel-loader. Verify how the package's preset declaration is applied, and consider the issue complete when consumers no longer receive an unwanted es2015 preset lookup.

Written by the indexing model from the issue text.

Assessment

Tech stack
babel, javascript, webpack
Domain
build-system, tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.