<h1 dir="auto">EDIT by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/hzoo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/hzoo">@hzoo</a>: make sure babel-core is &gt;= 6.26.0, and in general keep the babel deps the same version</h1>
<p dir="auto">Transform Generator Plugin Fails</p>
<h3 dir="auto">Input Code</h3>
<p dir="auto">I grab the lastest version of babel:</p>
<p dir="auto">....<br>
babel-plugin-transform-object-rest-spread@6.26.0 node_modules/babel-plugin-transform-object-rest-spread<br>
├── babel-plugin-syntax-object-rest-spread@6.13.0<br>
└── babel-runtime@6.26.0 (regenerator-runtime@0.11.0, core-js@2.5.0)</p>
<p dir="auto">babel-preset-es2015@6.6.0 node_modules/babel-preset-es2015<br>
├── babel-plugin-transform-es2015-block-scoped-functions@6.22.0 (babel-runtime@6.26.0)<br>
├── babel-plugin-transform-es2015-arrow-functions@6.22.0 (babel-runtime@6.26.0)<br>
├── babel-plugin-transform-es2015-typeof-symbol@6.23.0 (babel-runtime@6.26.0)<br>
├── babel-plugin-check-es2015-constants@6.22.0 (babel-runtime@6.26.0)<br>
├── babel-plugin-transform-es2015-literals@6.22.0 (babel-runtime@6.26.0)<br>
├── babel-plugin-transform-es2015-spread@6.22.0 (babel-runtime@6.26.0)<br>
├── babel-plugin-transform-es2015-template-literals@6.22.0 (babel-runtime@6.26.0)<br>
├── babel-plugin-transform-es2015-function-name@6.24.1 (babel-types@6.26.0, babel-helper-function-name@6.24.1, babel-runtime@6.26.0)<br>
├── babel-plugin-transform-es2015-unicode-regex@6.24.1 (regexpu-core@2.0.0, babel-helper-regex@6.26.0, babel-runtime@6.26.0)<br>
├── babel-plugin-transform-es2015-duplicate-keys@6.24.1 (babel-types@6.26.0, babel-runtime@6.26.0)<br>
├── babel-plugin-transform-es2015-object-super@6.24.1 (babel-helper-replace-supers@6.24.1, babel-runtime@6.26.0)<br>
├── babel-plugin-transform-es2015-for-of@6.23.0 (babel-runtime@6.26.0)<br>
├── babel-plugin-transform-es2015-sticky-regex@6.24.1 (babel-helper-regex@6.26.0, babel-types@6.26.0, babel-runtime@6.26.0)<br>
├── babel-plugin-transform-es2015-shorthand-properties@6.24.1 (babel-types@6.26.0, babel-runtime@6.26.0)<br>
├── babel-plugin-transform-es2015-computed-properties@6.24.1 (babel-template@6.26.0, babel-runtime@6.26.0)<br>
├── babel-plugin-transform-es2015-destructuring@6.23.0 (babel-runtime@6.26.0)<br>
├── babel-plugin-transform-es2015-parameters@6.24.1 (babel-helper-get-function-arity@6.24.1, babel-helper-call-delegate@6.24.1, babel-types@6.26.0, babel-template@6.26.0, babel-traverse@6.26.0, babel-runtime@6.26.0)<br>
├── babel-plugin-transform-es2015-modules-commonjs@6.26.0 (babel-plugin-transform-strict-mode@6.24.1, babel-types@6.26.0, babel-template@6.26.0, babel-runtime@6.26.0)<br>
├── babel-plugin-transform-es2015-block-scoping@6.26.0 (babel-types@6.26.0, babel-template@6.26.0, babel-traverse@6.26.0, babel-runtime@6.26.0)<br>
├── babel-plugin-transform-es2015-classes@6.24.1 (babel-helper-optimise-call-expression@6.24.1, babel-messages@6.23.0, babel-helper-replace-supers@6.24.1, babel-helper-define-map@6.26.0, babel-helper-function-name@6.24.1, babel-types@6.26.0, babel-template@6.26.0, babel-traverse@6.26.0, babel-runtime@6.26.0)<br>
└── babel-plugin-transform-regenerator@6.26.0 (regenerator-transform@0.10.0)</p>
<p dir="auto">babel-core@6.7.7 node_modules/babel-core<br>
├── slash@1.0.0<br>
├── shebang-regex@1.0.0<br>
├── path-exists@1.0.0<br>
├── path-is-absolute@1.0.1<br>
├── private@0.1.7<br>
├── convert-source-map@1.5.0<br>
├── babel-code-frame@6.26.0 (js-tokens@3.0.2, esutils@2.0.2)<br>
├── debug@2.6.8 (ms@2.0.0)<br>
├── minimatch@2.0.10 (brace-expansion@1.1.8)<br>
├── babylon@6.18.0<br>
├── json5@0.4.0<br>
├── source-map@0.5.6<br>
├── lodash@3.10.1<br>
├── babel-runtime@5.8.38 (core-js@1.2.7)<br>
├── babel-register@6.26.0 (home-or-tmp@2.0.0, source-map-support@0.4.15, mkdirp@0.5.1, babel-core@6.26.0, babel-runtime@6.26.0, lodash@4.17.4, core-js@2.5.0)<br>
├── babel-messages@6.23.0 (babel-runtime@6.26.0)<br>
├── babel-template@6.26.0 (lodash@4.17.4, babel-runtime@6.26.0)<br>
├── babel-helpers@6.24.1 (babel-runtime@6.26.0)<br>
├── babel-generator@6.26.0 (trim-right@1.0.1, jsesc@1.3.0, detect-indent@4.0.0, lodash@4.17.4, babel-runtime@6.26.0)<br>
├── babel-types@6.26.0 (to-fast-properties@1.0.3, esutils@2.0.2, lodash@4.17.4, babel-runtime@6.26.0)<br>
└── babel-traverse@6.26.0 (globals@9.18.0, invariant@2.2.2, lodash@4.17.4, babel-runtime@6.26.0)</p>
<p dir="auto">When i try and transpile my code:<br>
Module build failed: Error: Plugin 20 specified in "/my app folder/node_modules/babel-preset-es2015/index.js" provided an invalid property of "name"<br>
at Plugin.init (/my app folder/node_modules/babel-core/lib/transformation/plugin.js:115:13)<br>
at Function.normalisePlugin (/my app folder/node_modules/babel-core/lib/transformation/file/options/option-manager.js:149:12)<br>
at /my app folder/node_modules/babel-core/lib/transformation/file/options/option-manager.js:183:30<br>
at Array.map (native)<br>
at Function.normalisePlugins (/my app folder/node_modules/babel-core/lib/transformation/file/options/option-manager.js:155:20)<br>
at OptionManager.mergeOptions (/my app folder/node_modules/babel-core/lib/transformation/file/options/option-manager.js:277:36)<br>
at /my app folder/node_modules/babel-core/lib/transformation/file/options/option-manager.js:349:14<br>
at /my app folder/node_modules/babel-core/lib/transformation/file/options/option-manager.js:369:24<br>
at Array.map (native)<br>
at OptionManager.resolvePresets (/my app folder/node_modules/babel-core/lib/transformation/file/options/option-manager.js:364:20)<br>
at OptionManager.mergePresets (/my app folder/node_modules/babel-core/lib/transformation/file/options/option-manager.js:348:10)<br>
at OptionManager.mergeOptions (/my app folder/node_modules/babel-core/lib/transformation/file/options/option-manager.js:307:14)<br>
at OptionManager.init (/my app folder/node_modules/babel-core/lib/transformation/file/options/option-manager.js:465:10)<br>
at File.initOptions (/my app folder/node_modules/babel-core/lib/transformation/file/index.js:194:75)<br>
at new File (/my app folder/node_modules/babel-core/lib/transformation/file/index.js:123:22)<br>
at Pipeline.transform (/my app folder/node_modules/babel-core/lib/transformation/pipeline.js:45:16)</p>
<p dir="auto">I assume that plugin 20 is:<br>
babel-plugin-transform-regenerator@6.26.0 (regenerator-transform@0.10.0)</p>
<h3 dir="auto">Babel Configuration (.babelrc, package.json, cli command)</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="    &quot;babel-core&quot;: &quot;~6.7.4&quot;,
    &quot;babel-loader&quot;: &quot;~6.2.4&quot;,
    &quot;babel-plugin-resolver&quot;: &quot;^1.0.0&quot;,
    &quot;babel-plugin-transform-object-rest-spread&quot;: &quot;^6.8.0&quot;,
    &quot;babel-preset-es2015&quot;: &quot;~6.6.0&quot;,"><pre class="notranslate">    <span class="pl-s">"babel-core"</span>: <span class="pl-s">"~6.7.4"</span><span class="pl-kos">,</span>
    <span class="pl-s">"babel-loader"</span>: <span class="pl-s">"~6.2.4"</span><span class="pl-kos">,</span>
    <span class="pl-s">"babel-plugin-resolver"</span>: <span class="pl-s">"^1.0.0"</span><span class="pl-kos">,</span>
    <span class="pl-s">"babel-plugin-transform-object-rest-spread"</span>: <span class="pl-s">"^6.8.0"</span><span class="pl-kos">,</span>
    <span class="pl-s">"babel-preset-es2015"</span>: <span class="pl-s">"~6.6.0"</span><span class="pl-kos">,</span></pre></div>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">It shouldn't barf</p>
<h3 dir="auto">Current Behavior</h3>
<p dir="auto">Barfs</p>
<h3 dir="auto">Context</h3>
<p dir="auto">Can't build</p>
<h3 dir="auto">Your Environment</h3>
<p dir="auto">Nothing special. I have a build server where I am getting the latest version of all my dependencies during each run.</p>
<table role="table">
<thead>
<tr>
<th>software</th>
<th>version(s)</th>
</tr>
</thead>
<tbody>
<tr>
<td>Babel</td>
<td>babel-core@6.7.7</td>
</tr>
<tr>
<td>node</td>
<td>v0.10.46</td>
</tr>
<tr>
<td>npm</td>
<td>2.12.0</td>
</tr>
<tr>
<td>Operating System</td>
<td>linux</td>
</tr>
</tbody>
</table>
<h1 dir="auto">v7 Regression</h1>
<p dir="auto"><strong>Describe the regression</strong><br>
When I want to upgrade my project to use Babel V7 with suggest way, my project can't upgrade successfully with some error code.</p>
<p dir="auto">my Babel Configuration :</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
  &quot;presets&quot;: [
    [&quot;@babel/preset-env&quot;, {
      &quot;modules&quot;: false,
      &quot;targets&quot;: {
        &quot;browsers&quot;: [&quot;&gt; 1%&quot;, &quot;last 2 versions&quot;, &quot;not ie &lt;= 8&quot;]
      },
      &quot;useBuiltIns&quot;: &quot;usage&quot;,
      &quot;corejs&quot;: 3,
    }],
    &quot;@babel/preset-react&quot;
  ],
  &quot;plugins&quot;: [
    &quot;@babel/plugin-transform-runtime&quot;,
    [&quot;@babel/plugin-proposal-decorators&quot;, { &quot;legacy&quot;: true }],
    [&quot;@babel/plugin-proposal-class-properties&quot;, { &quot;loose&quot; : true }],
    &quot;@babel/plugin-proposal-object-rest-spread&quot;,
    &quot;@babel/plugin-syntax-dynamic-import&quot;,
    &quot;react-hot-loader/babel&quot;
  ]
}"><pre class="notranslate"><span class="pl-kos">{</span>
  <span class="pl-s">"presets"</span>: <span class="pl-kos">[</span>
    <span class="pl-kos">[</span><span class="pl-s">"@babel/preset-env"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
      <span class="pl-s">"modules"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
      <span class="pl-s">"targets"</span>: <span class="pl-kos">{</span>
        <span class="pl-s">"browsers"</span>: <span class="pl-kos">[</span><span class="pl-s">"&gt; 1%"</span><span class="pl-kos">,</span> <span class="pl-s">"last 2 versions"</span><span class="pl-kos">,</span> <span class="pl-s">"not ie &lt;= 8"</span><span class="pl-kos">]</span>
      <span class="pl-kos">}</span><span class="pl-kos">,</span>
      <span class="pl-s">"useBuiltIns"</span>: <span class="pl-s">"usage"</span><span class="pl-kos">,</span>
      <span class="pl-s">"corejs"</span>: <span class="pl-c1">3</span><span class="pl-kos">,</span>
    <span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
    <span class="pl-s">"@babel/preset-react"</span>
  <span class="pl-kos">]</span><span class="pl-kos">,</span>
  <span class="pl-s">"plugins"</span>: <span class="pl-kos">[</span>
    <span class="pl-s">"@babel/plugin-transform-runtime"</span><span class="pl-kos">,</span>
    <span class="pl-kos">[</span><span class="pl-s">"@babel/plugin-proposal-decorators"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-s">"legacy"</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
    <span class="pl-kos">[</span><span class="pl-s">"@babel/plugin-proposal-class-properties"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-s">"loose"</span> : <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
    <span class="pl-s">"@babel/plugin-proposal-object-rest-spread"</span><span class="pl-kos">,</span>
    <span class="pl-s">"@babel/plugin-syntax-dynamic-import"</span><span class="pl-kos">,</span>
    <span class="pl-s">"react-hot-loader/babel"</span>
  <span class="pl-kos">]</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">package.json:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="  &quot;devDependencies&quot;: {
    &quot;@babel/core&quot;: &quot;^7.4.5&quot;,
    &quot;@babel/plugin-proposal-class-properties&quot;: &quot;^7.4.4&quot;,
    &quot;@babel/plugin-proposal-decorators&quot;: &quot;^7.4.4&quot;,
    &quot;@babel/plugin-proposal-object-rest-spread&quot;: &quot;^7.0.0&quot;,
    &quot;@babel/plugin-syntax-dynamic-import&quot;: &quot;^7.0.0&quot;,
    &quot;@babel/plugin-transform-runtime&quot;: &quot;^7.0.0&quot;,
    &quot;@babel/preset-env&quot;: &quot;^7.4.5&quot;,
    &quot;@babel/preset-react&quot;: &quot;^7.0.0&quot;,
    &quot;autoprefixer&quot;: &quot;^8.6.1&quot;,
    &quot;babel-eslint&quot;: &quot;^9.0.0&quot;,
    &quot;babel-loader&quot;: &quot;^8.0.6&quot;,
    &quot;babel-plugin-module-resolver&quot;: &quot;^3.1.1&quot;,
    &quot;core-js&quot;: &quot;^3.1.3&quot;,
    &quot;css-loader&quot;: &quot;^2.1.1&quot;,
    &quot;html-webpack-plugin&quot;: &quot;^3.2.0&quot;,
    &quot;less&quot;: &quot;^3.0.4&quot;,
    &quot;less-loader&quot;: &quot;^4.1.0&quot;,
    &quot;mini-css-extract-plugin&quot;: &quot;^0.4.2&quot;,
    &quot;node-sass&quot;: &quot;^4.9.0&quot;,
    &quot;optimize-css-assets-webpack-plugin&quot;: &quot;^5.0.1&quot;,
    &quot;postcss-loader&quot;: &quot;^2.1.5&quot;,
    &quot;react-hot-loader&quot;: &quot;^4.3.12&quot;,
    &quot;react-loadable&quot;: &quot;^5.5.0&quot;,
    &quot;style-loader&quot;: &quot;^0.21.0&quot;,
    &quot;uglifyjs-webpack-plugin&quot;: &quot;^1.2.5&quot;,
    &quot;webpack&quot;: &quot;^4.18.0&quot;,
    &quot;webpack-cli&quot;: &quot;^3.0.2&quot;,
    &quot;webpack-dev-middleware&quot;: &quot;^3.3.0&quot;,
    &quot;webpack-dev-server&quot;: &quot;^3.1.14&quot;,
    &quot;webpack-merge&quot;: &quot;^4.1.2&quot;
  },
  &quot;dependencies&quot;: {
    &quot;@babel/polyfill&quot;: &quot;^7.4.4&quot;,
    &quot;@babel/runtime&quot;: &quot;^7.0.0&quot;,
    &quot;@material-ui/core&quot;: &quot;^3.9.1&quot;,
    &quot;@material-ui/icons&quot;: &quot;^3.0.1&quot;,
    &quot;antd&quot;: &quot;^3.19.1&quot;,
    &quot;browserslist&quot;: &quot;^4.4.2&quot;,
    &quot;classnames&quot;: &quot;^2.2.6&quot;,
    &quot;detect-browser&quot;: &quot;^4.1.0&quot;,
    &quot;lodash&quot;: &quot;^4.17.10&quot;,
    &quot;moment&quot;: &quot;^2.22.2&quot;,
    &quot;normalize.css&quot;: &quot;^8.0.0&quot;,
    &quot;prop-types&quot;: &quot;^15.6.2&quot;,
    &quot;react&quot;: &quot;^16.5.0&quot;,
    &quot;react-dom&quot;: &quot;^16.5.0&quot;,
    &quot;react-redux&quot;: &quot;^5.0.7&quot;,
    &quot;react-router-dom&quot;: &quot;^4.3.1&quot;,
    &quot;redux&quot;: &quot;^4.0.0&quot;,
    &quot;styled-components&quot;: &quot;^3.4.6&quot;
  }
}"><pre class="notranslate">  <span class="pl-ent">"devDependencies"</span>: {
    <span class="pl-ent">"@babel/core"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.4.5<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"@babel/plugin-proposal-class-properties"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.4.4<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"@babel/plugin-proposal-decorators"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.4.4<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"@babel/plugin-proposal-object-rest-spread"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.0.0<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"@babel/plugin-syntax-dynamic-import"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.0.0<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"@babel/plugin-transform-runtime"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.0.0<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"@babel/preset-env"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.4.5<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"@babel/preset-react"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.0.0<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"autoprefixer"</span>: <span class="pl-s"><span class="pl-pds">"</span>^8.6.1<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"babel-eslint"</span>: <span class="pl-s"><span class="pl-pds">"</span>^9.0.0<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"babel-loader"</span>: <span class="pl-s"><span class="pl-pds">"</span>^8.0.6<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"babel-plugin-module-resolver"</span>: <span class="pl-s"><span class="pl-pds">"</span>^3.1.1<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"core-js"</span>: <span class="pl-s"><span class="pl-pds">"</span>^3.1.3<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"css-loader"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.1.1<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"html-webpack-plugin"</span>: <span class="pl-s"><span class="pl-pds">"</span>^3.2.0<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"less"</span>: <span class="pl-s"><span class="pl-pds">"</span>^3.0.4<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"less-loader"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.1.0<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"mini-css-extract-plugin"</span>: <span class="pl-s"><span class="pl-pds">"</span>^0.4.2<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"node-sass"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.9.0<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"optimize-css-assets-webpack-plugin"</span>: <span class="pl-s"><span class="pl-pds">"</span>^5.0.1<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"postcss-loader"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.1.5<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"react-hot-loader"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.3.12<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"react-loadable"</span>: <span class="pl-s"><span class="pl-pds">"</span>^5.5.0<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"style-loader"</span>: <span class="pl-s"><span class="pl-pds">"</span>^0.21.0<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"uglifyjs-webpack-plugin"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.2.5<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"webpack"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.18.0<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"webpack-cli"</span>: <span class="pl-s"><span class="pl-pds">"</span>^3.0.2<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"webpack-dev-middleware"</span>: <span class="pl-s"><span class="pl-pds">"</span>^3.3.0<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"webpack-dev-server"</span>: <span class="pl-s"><span class="pl-pds">"</span>^3.1.14<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"webpack-merge"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.1.2<span class="pl-pds">"</span></span>
  },
  <span class="pl-ent">"dependencies"</span>: {
    <span class="pl-ent">"@babel/polyfill"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.4.4<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"@babel/runtime"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.0.0<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"@material-ui/core"</span>: <span class="pl-s"><span class="pl-pds">"</span>^3.9.1<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"@material-ui/icons"</span>: <span class="pl-s"><span class="pl-pds">"</span>^3.0.1<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"antd"</span>: <span class="pl-s"><span class="pl-pds">"</span>^3.19.1<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"browserslist"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.4.2<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"classnames"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.2.6<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"detect-browser"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.1.0<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"lodash"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.17.10<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"moment"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.22.2<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"normalize.css"</span>: <span class="pl-s"><span class="pl-pds">"</span>^8.0.0<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"prop-types"</span>: <span class="pl-s"><span class="pl-pds">"</span>^15.6.2<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"react"</span>: <span class="pl-s"><span class="pl-pds">"</span>^16.5.0<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"react-dom"</span>: <span class="pl-s"><span class="pl-pds">"</span>^16.5.0<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"react-redux"</span>: <span class="pl-s"><span class="pl-pds">"</span>^5.0.7<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"react-router-dom"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.3.1<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"redux"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.0.0<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"styled-components"</span>: <span class="pl-s"><span class="pl-pds">"</span>^3.4.6<span class="pl-pds">"</span></span>
  }
<span class="pl-ii">}</span></pre></div>
<p dir="auto">Because I want to use the useBuiltIns feature, so I fallowed the terminal console suggestion to install the core-js@3</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="WARNING: We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option.

You should also be sure that the version you pass to the `corejs` option matches the version specified in your `package.json`'s `dependencies` section. If it doesn't, you need to run one of the following commands:

  npm install --save core-js@2    npm install --save core-js@3
  yarn add core-js@2              yarn add core-js@3"><pre class="notranslate"><code class="notranslate">WARNING: We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option.

You should also be sure that the version you pass to the `corejs` option matches the version specified in your `package.json`'s `dependencies` section. If it doesn't, you need to run one of the following commands:

  npm install --save core-js@2    npm install --save core-js@3
  yarn add core-js@2              yarn add core-js@3
</code></pre></div>
<p dir="auto">error code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR in ./node_modules/babel-runtime/core-js/array/from.js
Module not found: Error: Can't resolve 'core-js/library/fn/array/from' in '/Users/neinei/project/wistron/T1-project/wiBioWeb/node_modules/babel-runtime/core-js/array'
 @ ./node_modules/babel-runtime/core-js/array/from.js 1:30-70
 @ ./node_modules/babel-runtime/helpers/toConsumableArray.js
 @ ./node_modules/rc-slider/es/Range.js
 @ ./node_modules/antd/es/slider/index.js
 @ ./node_modules/antd/es/index.js
 @ ./src/containers/Admin/AdminHome/AdminHome.js
 @ ./src/containers/Main/Main.js
 @ ./src/App.js
 @ ./src/index.js

ERROR in ./node_modules/babel-runtime/core-js/object/assign.js
Module not found: Error: Can't resolve 'core-js/library/fn/object/assign' in '/Users/neinei/project/wistron/T1-project/wiBioWeb/node_modules/babel-runtime/core-js/object'
 @ ./node_modules/babel-runtime/core-js/object/assign.js 1:30-73
 @ ./node_modules/babel-runtime/helpers/extends.js
 @ ./node_modules/omit.js/es/index.js
 @ ./node_modules/antd/es/affix/index.js
 @ ./node_modules/antd/es/index.js
 @ ./src/containers/Admin/AdminHome/AdminHome.js
 @ ./src/containers/Main/Main.js
 @ ./src/App.js
 @ ./src/index.js

ERROR in ./node_modules/babel-runtime/core-js/object/create.js
Module not found: Error: Can't resolve 'core-js/library/fn/object/create' in '/Users/neinei/project/wistron/T1-project/wiBioWeb/node_modules/babel-runtime/core-js/object'
 @ ./node_modules/babel-runtime/core-js/object/create.js 1:30-73
 @ ./node_modules/babel-runtime/helpers/inherits.js
 @ ./node_modules/rc-tooltip/es/Tooltip.js
 @ ./node_modules/rc-tooltip/es/index.js
 @ ./node_modules/antd/es/tooltip/index.js
 @ ./node_modules/antd/es/index.js
 @ ./src/containers/Admin/AdminHome/AdminHome.js
 @ ./src/containers/Main/Main.js
 @ ./src/App.js
 @ ./src/index.js

ERROR in ./node_modules/babel-runtime/core-js/object/define-property.js
Module not found: Error: Can't resolve 'core-js/library/fn/object/define-property' in '/Users/neinei/project/wistron/T1-project/wiBioWeb/node_modules/babel-runtime/core-js/object'
 @ ./node_modules/babel-runtime/core-js/object/define-property.js 1:30-82
 @ ./node_modules/babel-runtime/helpers/defineProperty.js
 @ ./node_modules/rc-animate/es/Animate.js
 @ ./node_modules/antd/es/upload/UploadList.js
 @ ./node_modules/antd/es/upload/Upload.js
 @ ./node_modules/antd/es/upload/index.js
 @ ./node_modules/antd/es/index.js
 @ ./src/containers/Admin/AdminHome/AdminHome.js
 @ ./src/containers/Main/Main.js
 @ ./src/App.js
 @ ./src/index.js

ERROR in ./node_modules/babel-runtime/core-js/object/get-own-property-descriptor.js
Module not found: Error: Can't resolve 'core-js/library/fn/object/get-own-property-descriptor' in '/Users/neinei/project/wistron/T1-project/wiBioWeb/node_modules/babel-runtime/core-js/object'
 @ ./node_modules/babel-runtime/core-js/object/get-own-property-descriptor.js 1:30-94
 @ ./node_modules/babel-runtime/helpers/get.js
 @ ./node_modules/rc-slider/es/common/createSlider.js
 @ ./node_modules/rc-slider/es/Range.js
 @ ./node_modules/antd/es/slider/index.js
 @ ./node_modules/antd/es/index.js
 @ ./src/containers/Admin/AdminHome/AdminHome.js
 @ ./src/containers/Main/Main.js
 @ ./src/App.js
 @ ./src/index.js

ERROR in ./node_modules/babel-runtime/core-js/object/get-prototype-of.js
Module not found: Error: Can't resolve 'core-js/library/fn/object/get-prototype-of' in '/Users/neinei/project/wistron/T1-project/wiBioWeb/node_modules/babel-runtime/core-js/object'
 @ ./node_modules/babel-runtime/core-js/object/get-prototype-of.js 1:30-83
 @ ./node_modules/babel-runtime/helpers/get.js
 @ ./node_modules/rc-slider/es/common/createSlider.js
 @ ./node_modules/rc-slider/es/Range.js
 @ ./node_modules/antd/es/slider/index.js
 @ ./node_modules/antd/es/index.js
 @ ./src/containers/Admin/AdminHome/AdminHome.js
 @ ./src/containers/Main/Main.js
 @ ./src/App.js
 @ ./src/index.js

ERROR in ./node_modules/babel-runtime/core-js/object/set-prototype-of.js
Module not found: Error: Can't resolve 'core-js/library/fn/object/set-prototype-of' in '/Users/neinei/project/wistron/T1-project/wiBioWeb/node_modules/babel-runtime/core-js/object'
 @ ./node_modules/babel-runtime/core-js/object/set-prototype-of.js 1:30-83
 @ ./node_modules/babel-runtime/helpers/inherits.js
 @ ./node_modules/rc-tooltip/es/Tooltip.js
 @ ./node_modules/rc-tooltip/es/index.js
 @ ./node_modules/antd/es/tooltip/index.js
 @ ./node_modules/antd/es/index.js
 @ ./src/containers/Admin/AdminHome/AdminHome.js
 @ ./src/containers/Main/Main.js
 @ ./src/App.js
 @ ./src/index.js

ERROR in ./node_modules/babel-runtime/core-js/symbol.js
Module not found: Error: Can't resolve 'core-js/library/fn/symbol' in '/Users/neinei/project/wistron/T1-project/wiBioWeb/node_modules/babel-runtime/core-js'
 @ ./node_modules/babel-runtime/core-js/symbol.js 1:30-66
 @ ./node_modules/babel-runtime/helpers/typeof.js
 @ ./node_modules/babel-runtime/helpers/inherits.js
 @ ./node_modules/rc-tooltip/es/Tooltip.js
 @ ./node_modules/rc-tooltip/es/index.js
 @ ./node_modules/antd/es/tooltip/index.js
 @ ./node_modules/antd/es/index.js
 @ ./src/containers/Admin/AdminHome/AdminHome.js
 @ ./src/containers/Main/Main.js
 @ ./src/App.js
 @ ./src/index.js

ERROR in ./node_modules/babel-runtime/core-js/symbol/iterator.js
Module not found: Error: Can't resolve 'core-js/library/fn/symbol/iterator' in '/Users/neinei/project/wistron/T1-project/wiBioWeb/node_modules/babel-runtime/core-js/symbol'
 @ ./node_modules/babel-runtime/core-js/symbol/iterator.js 1:30-75
 @ ./node_modules/babel-runtime/helpers/typeof.js
 @ ./node_modules/babel-runtime/helpers/inherits.js
 @ ./node_modules/rc-tooltip/es/Tooltip.js
 @ ./node_modules/rc-tooltip/es/index.js
 @ ./node_modules/antd/es/tooltip/index.js
 @ ./node_modules/antd/es/index.js
 @ ./src/containers/Admin/AdminHome/AdminHome.js
 @ ./src/containers/Main/Main.js
 @ ./src/App.js
 @ ./src/index.js
Child html-webpack-plugin for &quot;index.html&quot;:
     1 asset
    Entrypoint undefined = index.html
    [LvDl] ./node_modules/lodash/lodash.js 527 KiB {0} [built]
    [MFLM] ./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html 939 bytes {0} [built]
    [YuTi] (webpack)/buildin/module.js 497 bytes {0} [built]
    [yLpj] (webpack)/buildin/global.js 472 bytes {0} [built]
ℹ ｢wdm｣: Failed to compile."><pre class="notranslate"><code class="notranslate">ERROR in ./node_modules/babel-runtime/core-js/array/from.js
Module not found: Error: Can't resolve 'core-js/library/fn/array/from' in '/Users/neinei/project/wistron/T1-project/wiBioWeb/node_modules/babel-runtime/core-js/array'
 @ ./node_modules/babel-runtime/core-js/array/from.js 1:30-70
 @ ./node_modules/babel-runtime/helpers/toConsumableArray.js
 @ ./node_modules/rc-slider/es/Range.js
 @ ./node_modules/antd/es/slider/index.js
 @ ./node_modules/antd/es/index.js
 @ ./src/containers/Admin/AdminHome/AdminHome.js
 @ ./src/containers/Main/Main.js
 @ ./src/App.js
 @ ./src/index.js

ERROR in ./node_modules/babel-runtime/core-js/object/assign.js
Module not found: Error: Can't resolve 'core-js/library/fn/object/assign' in '/Users/neinei/project/wistron/T1-project/wiBioWeb/node_modules/babel-runtime/core-js/object'
 @ ./node_modules/babel-runtime/core-js/object/assign.js 1:30-73
 @ ./node_modules/babel-runtime/helpers/extends.js
 @ ./node_modules/omit.js/es/index.js
 @ ./node_modules/antd/es/affix/index.js
 @ ./node_modules/antd/es/index.js
 @ ./src/containers/Admin/AdminHome/AdminHome.js
 @ ./src/containers/Main/Main.js
 @ ./src/App.js
 @ ./src/index.js

ERROR in ./node_modules/babel-runtime/core-js/object/create.js
Module not found: Error: Can't resolve 'core-js/library/fn/object/create' in '/Users/neinei/project/wistron/T1-project/wiBioWeb/node_modules/babel-runtime/core-js/object'
 @ ./node_modules/babel-runtime/core-js/object/create.js 1:30-73
 @ ./node_modules/babel-runtime/helpers/inherits.js
 @ ./node_modules/rc-tooltip/es/Tooltip.js
 @ ./node_modules/rc-tooltip/es/index.js
 @ ./node_modules/antd/es/tooltip/index.js
 @ ./node_modules/antd/es/index.js
 @ ./src/containers/Admin/AdminHome/AdminHome.js
 @ ./src/containers/Main/Main.js
 @ ./src/App.js
 @ ./src/index.js

ERROR in ./node_modules/babel-runtime/core-js/object/define-property.js
Module not found: Error: Can't resolve 'core-js/library/fn/object/define-property' in '/Users/neinei/project/wistron/T1-project/wiBioWeb/node_modules/babel-runtime/core-js/object'
 @ ./node_modules/babel-runtime/core-js/object/define-property.js 1:30-82
 @ ./node_modules/babel-runtime/helpers/defineProperty.js
 @ ./node_modules/rc-animate/es/Animate.js
 @ ./node_modules/antd/es/upload/UploadList.js
 @ ./node_modules/antd/es/upload/Upload.js
 @ ./node_modules/antd/es/upload/index.js
 @ ./node_modules/antd/es/index.js
 @ ./src/containers/Admin/AdminHome/AdminHome.js
 @ ./src/containers/Main/Main.js
 @ ./src/App.js
 @ ./src/index.js

ERROR in ./node_modules/babel-runtime/core-js/object/get-own-property-descriptor.js
Module not found: Error: Can't resolve 'core-js/library/fn/object/get-own-property-descriptor' in '/Users/neinei/project/wistron/T1-project/wiBioWeb/node_modules/babel-runtime/core-js/object'
 @ ./node_modules/babel-runtime/core-js/object/get-own-property-descriptor.js 1:30-94
 @ ./node_modules/babel-runtime/helpers/get.js
 @ ./node_modules/rc-slider/es/common/createSlider.js
 @ ./node_modules/rc-slider/es/Range.js
 @ ./node_modules/antd/es/slider/index.js
 @ ./node_modules/antd/es/index.js
 @ ./src/containers/Admin/AdminHome/AdminHome.js
 @ ./src/containers/Main/Main.js
 @ ./src/App.js
 @ ./src/index.js

ERROR in ./node_modules/babel-runtime/core-js/object/get-prototype-of.js
Module not found: Error: Can't resolve 'core-js/library/fn/object/get-prototype-of' in '/Users/neinei/project/wistron/T1-project/wiBioWeb/node_modules/babel-runtime/core-js/object'
 @ ./node_modules/babel-runtime/core-js/object/get-prototype-of.js 1:30-83
 @ ./node_modules/babel-runtime/helpers/get.js
 @ ./node_modules/rc-slider/es/common/createSlider.js
 @ ./node_modules/rc-slider/es/Range.js
 @ ./node_modules/antd/es/slider/index.js
 @ ./node_modules/antd/es/index.js
 @ ./src/containers/Admin/AdminHome/AdminHome.js
 @ ./src/containers/Main/Main.js
 @ ./src/App.js
 @ ./src/index.js

ERROR in ./node_modules/babel-runtime/core-js/object/set-prototype-of.js
Module not found: Error: Can't resolve 'core-js/library/fn/object/set-prototype-of' in '/Users/neinei/project/wistron/T1-project/wiBioWeb/node_modules/babel-runtime/core-js/object'
 @ ./node_modules/babel-runtime/core-js/object/set-prototype-of.js 1:30-83
 @ ./node_modules/babel-runtime/helpers/inherits.js
 @ ./node_modules/rc-tooltip/es/Tooltip.js
 @ ./node_modules/rc-tooltip/es/index.js
 @ ./node_modules/antd/es/tooltip/index.js
 @ ./node_modules/antd/es/index.js
 @ ./src/containers/Admin/AdminHome/AdminHome.js
 @ ./src/containers/Main/Main.js
 @ ./src/App.js
 @ ./src/index.js

ERROR in ./node_modules/babel-runtime/core-js/symbol.js
Module not found: Error: Can't resolve 'core-js/library/fn/symbol' in '/Users/neinei/project/wistron/T1-project/wiBioWeb/node_modules/babel-runtime/core-js'
 @ ./node_modules/babel-runtime/core-js/symbol.js 1:30-66
 @ ./node_modules/babel-runtime/helpers/typeof.js
 @ ./node_modules/babel-runtime/helpers/inherits.js
 @ ./node_modules/rc-tooltip/es/Tooltip.js
 @ ./node_modules/rc-tooltip/es/index.js
 @ ./node_modules/antd/es/tooltip/index.js
 @ ./node_modules/antd/es/index.js
 @ ./src/containers/Admin/AdminHome/AdminHome.js
 @ ./src/containers/Main/Main.js
 @ ./src/App.js
 @ ./src/index.js

ERROR in ./node_modules/babel-runtime/core-js/symbol/iterator.js
Module not found: Error: Can't resolve 'core-js/library/fn/symbol/iterator' in '/Users/neinei/project/wistron/T1-project/wiBioWeb/node_modules/babel-runtime/core-js/symbol'
 @ ./node_modules/babel-runtime/core-js/symbol/iterator.js 1:30-75
 @ ./node_modules/babel-runtime/helpers/typeof.js
 @ ./node_modules/babel-runtime/helpers/inherits.js
 @ ./node_modules/rc-tooltip/es/Tooltip.js
 @ ./node_modules/rc-tooltip/es/index.js
 @ ./node_modules/antd/es/tooltip/index.js
 @ ./node_modules/antd/es/index.js
 @ ./src/containers/Admin/AdminHome/AdminHome.js
 @ ./src/containers/Main/Main.js
 @ ./src/App.js
 @ ./src/index.js
Child html-webpack-plugin for "index.html":
     1 asset
    Entrypoint undefined = index.html
    [LvDl] ./node_modules/lodash/lodash.js 527 KiB {0} [built]
    [MFLM] ./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html 939 bytes {0} [built]
    [YuTi] (webpack)/buildin/module.js 497 bytes {0} [built]
    [yLpj] (webpack)/buildin/global.js 472 bytes {0} [built]
ℹ ｢wdm｣: Failed to compile.
</code></pre></div>
<p dir="auto"><strong>find other node_modules - antd use babel-runtime v6.x that use core-js v2</strong><br>
<a href="https://github.com/ant-design/ant-design/blob/master/package.json">antd package.json</a><br>
<a href="https://github.com/babel/babel/blob/6.x/packages/babel-runtime/package.json">babel-runtime v6.X package.json</a></p>
<p dir="auto">Maybe the error is the antd's babel-runtime v6.x (use core-js V2) and babel 7 useBuiltIns I choose core-js 3 caused.</p>
<p dir="auto">So I installed core-js@2 into my project, then fixed this error. Compiled successfully.</p>
<p dir="auto"><strong>I'm just speculating for that you cannot use <code class="notranslate">useBuiltIns</code> with core-js v3 when project used node_modules does't upgrade their babel to v7 OR You have to check all of used node_modules don't use any core-js v2 when you want to installed core-js v3 in your project</strong></p>
<p dir="auto"><strong>Environment</strong></p>
<ul dir="auto">
<li>Babel version(s): v7.4.5</li>
<li>Node/npm version:  Node v10.13.0 / npm v6.4.1</li>
<li>OS: Mojave 10.14</li>
<li>Monorepo no</li>
<li>How you are using Babel: loader</li>
</ul>
<p dir="auto">PS. I have create a <a href="https://github.com/satsuya0114/react-webpack-startkit-babel-7">new repo</a> to duplicate this issue.</p>