<p dir="auto">For some reason the install of babel-core is looking for version ^6.18 of babel-types,<br>
causing npm install to fail</p>
<h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>Current Behavior</strong><br>
Safari throwing error with message</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Unexpected token '...'. Expected a property name."><pre class="notranslate"><code class="notranslate">Unexpected token '...'. Expected a property name.
</code></pre></div>
<p dir="auto">at</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="({ ...object })"><pre class="notranslate"><span class="pl-kos">(</span><span class="pl-kos">{</span> ...<span class="pl-s1">object</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div>
<p dir="auto"><strong>Input Code</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const data = { name: 'username' };
const spread = object =&gt; ({ ...object, email: 'some@mail.com' });
const result = spread(data);
"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'username'</span> <span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-en">spread</span> <span class="pl-c1">=</span> <span class="pl-s1">object</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> ...<span class="pl-s1">object</span><span class="pl-kos">,</span> <span class="pl-c1">email</span>: <span class="pl-s">'some@mail.com'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-en">spread</span><span class="pl-kos">(</span><span class="pl-s1">data</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Expected behavior/code</strong></p>
<p dir="auto"><code class="notranslate">_objectSpread</code> to be called with <code class="notranslate">result</code> as a parameter, returning <code class="notranslate">{ name: 'username', email: 'some@mail.com' }</code></p>
<p dir="auto"><strong>Babel Configuration (.babelrc, package.json, cli command)</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
    &quot;presets&quot;: [
        [ &quot;@babel/env&quot;, {  &quot;useBuiltIns&quot;: &quot;usage&quot;, &quot;corejs&quot;: 3 } ],
        &quot;@babel/react&quot;
    ],
    &quot;plugins&quot;: [
        &quot;@babel/proposal-class-properties&quot;,
        [ &quot;@babel/transform-runtime&quot;, { &quot;corejs&quot;: 3 } ]
}"><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/env"</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-s">"@babel/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/proposal-class-properties"</span><span class="pl-kos">,</span>
        <span class="pl-kos">[</span> <span class="pl-s">"@babel/transform-runtime"</span><span class="pl-kos">,</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></pre></div>
<p dir="auto"><strong>Environment</strong></p>
<ul dir="auto">
<li>Babel version(s): 7.6.4</li>
<li>Node/npm version: 11.13.0</li>
<li>OS: macOS High Sierra 10.13.2</li>
<li>Monorepo: no</li>
<li>How you are using Babel: loader</li>
</ul>
<p dir="auto"><strong>Additional context/Screenshots</strong></p>
<p dir="auto">Dependencies:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;@babel/plugin-proposal-class-properties&quot;: &quot;^7.5.5&quot;,
&quot;@babel/plugin-transform-runtime&quot;: &quot;^7.6.2&quot;,
&quot;@babel/preset-env&quot;: &quot;^7.6.3&quot;,
&quot;@babel/preset-react&quot;: &quot;^7.6.3&quot;,
&quot;@babel/runtime-corejs3&quot;: &quot;^7.6.3&quot;,
&quot;babel-loader&quot;: &quot;^8.0.6&quot;,
&quot;webpack&quot;: &quot;^4.41.2&quot;,
&quot;webpack-cli&quot;: &quot;^3.3.9&quot;"><pre class="notranslate"><code class="notranslate">"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/plugin-transform-runtime": "^7.6.2",
"@babel/preset-env": "^7.6.3",
"@babel/preset-react": "^7.6.3",
"@babel/runtime-corejs3": "^7.6.3",
"babel-loader": "^8.0.6",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.9"
</code></pre></div>
<p dir="auto">Webpack rule:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
    test: /\.jsx?$/,
    exclude: /node_modules/,
    use: 'babel-loader'
}"><pre class="notranslate"><code class="notranslate">{
    test: /\.jsx?$/,
    exclude: /node_modules/,
    use: 'babel-loader'
}
</code></pre></div>
<p dir="auto">Browserslist:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;&gt; 0.25%, not dead, safari 11&quot;"><pre class="notranslate"><code class="notranslate">"&gt; 0.25%, not dead, safari 11"
</code></pre></div>