<p dir="auto">While trying to deploy my angular 2 app using VS2015. There are two errors, at the moment of running webpack, but none errors at the moment of doing a building in vs2015</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\Users\asus\Desktop\C# Web\Core\AngularAPI\ApiAngWebPack\WebApp&gt; cmd /c SET NODE_ENV=development&amp;&amp; webpack -d --color
@@@@@@@@@ USING DEVELOPMENT @@@@@@@@@@@@@@@
clean-webpack-plugin: C:\Users\asus\Desktop\C# Web\Core\AngularAPI\ApiAngWebPack\WebApp\wwwroot\dist has been removed.
clean-webpack-plugin: C:\Users\asus\Desktop\C# Web\Core\AngularAPI\ApiAngWebPack\WebApp\wwwroot\fonts has been removed.
clean-webpack-plugin: C:\Users\asus\Desktop\C# Web\Core\AngularAPI\ApiAngWebPack\WebApp\wwwroot\assets has been removed.
Hash: ab986b13a96ef5707853
Version: webpack 2.1.0-beta.25
Time: 18114ms
                                           Asset       Size  Chunks             Chunk Names
  assets/glyphicons-halflings-regular-f4769f.eot    20.1 kB          [emitted]  
  assets/glyphicons-halflings-regular-f72146.svg     109 kB          [emitted]  
  assets/glyphicons-halflings-regular-e18bbf.ttf    45.4 kB          [emitted]  
 assets/glyphicons-halflings-regular-fa2772.woff    23.4 kB          [emitted]  
assets/glyphicons-halflings-regular-448c34.woff2      18 kB          [emitted]  
                              dist/app.bundle.js     8.8 MB       0  [emitted]  app
                                      index.html  426 bytes          [emitted]  
                            assets/damienbod.jpg    4.85 kB          [emitted]  
    + 805 hidden modules
ERROR in [default] C:\Users\asus\Desktop\C# Web\Core\AngularAPI\ApiAngWebPack\WebApp\node_modules\typescript\lib\lib.es2015.core.d.ts:17:13 
Duplicate identifier 'PropertyKey'.
ERROR in [default] C:\Users\asus\Desktop\C# Web\Core\AngularAPI\ApiAngWebPack\node_modules\@types\core-js\index.d.ts:21:13 
Duplicate identifier 'PropertyKey'.
Child html-webpack-plugin for &quot;index.html&quot;:
        + 1 hidden modules
Process terminated with code 2."><pre class="notranslate"><code class="notranslate">C:\Users\asus\Desktop\C# Web\Core\AngularAPI\ApiAngWebPack\WebApp&gt; cmd /c SET NODE_ENV=development&amp;&amp; webpack -d --color
@@@@@@@@@ USING DEVELOPMENT @@@@@@@@@@@@@@@
clean-webpack-plugin: C:\Users\asus\Desktop\C# Web\Core\AngularAPI\ApiAngWebPack\WebApp\wwwroot\dist has been removed.
clean-webpack-plugin: C:\Users\asus\Desktop\C# Web\Core\AngularAPI\ApiAngWebPack\WebApp\wwwroot\fonts has been removed.
clean-webpack-plugin: C:\Users\asus\Desktop\C# Web\Core\AngularAPI\ApiAngWebPack\WebApp\wwwroot\assets has been removed.
Hash: ab986b13a96ef5707853
Version: webpack 2.1.0-beta.25
Time: 18114ms
                                           Asset       Size  Chunks             Chunk Names
  assets/glyphicons-halflings-regular-f4769f.eot    20.1 kB          [emitted]  
  assets/glyphicons-halflings-regular-f72146.svg     109 kB          [emitted]  
  assets/glyphicons-halflings-regular-e18bbf.ttf    45.4 kB          [emitted]  
 assets/glyphicons-halflings-regular-fa2772.woff    23.4 kB          [emitted]  
assets/glyphicons-halflings-regular-448c34.woff2      18 kB          [emitted]  
                              dist/app.bundle.js     8.8 MB       0  [emitted]  app
                                      index.html  426 bytes          [emitted]  
                            assets/damienbod.jpg    4.85 kB          [emitted]  
    + 805 hidden modules
ERROR in [default] C:\Users\asus\Desktop\C# Web\Core\AngularAPI\ApiAngWebPack\WebApp\node_modules\typescript\lib\lib.es2015.core.d.ts:17:13 
Duplicate identifier 'PropertyKey'.
ERROR in [default] C:\Users\asus\Desktop\C# Web\Core\AngularAPI\ApiAngWebPack\node_modules\@types\core-js\index.d.ts:21:13 
Duplicate identifier 'PropertyKey'.
Child html-webpack-plugin for "index.html":
        + 1 hidden modules
Process terminated with code 2.
</code></pre></div>
<p dir="auto">This issues are not allowing to generate a new build. This is the result showed from the browser side</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught Error: Module build failed: Error: EPERM: operation not permitted, open 'C:\Users\asus\Desktop\C# Web\Core\AngularAPI\ApiAngWebPack\WebApi\node_modules\webpack\buildin\global.js'
    at Error (native)
    at Error (native)
    at eval (eval at &lt;anonymous&gt; (http://localhost:18678/dist/app.bundle.js:530:1), &lt;anonymous&gt;:1:7)
    at Object.&lt;anonymous&gt; (http://localhost:18678/dist/app.bundle.js:530:1)
    at __webpack_require__ (http://localhost:18678/dist/app.bundle.js:20:30)
    at eval (eval at &lt;anonymous&gt; (http://localhost:18678/dist/app.bundle.js:7659:1), &lt;anonymous&gt;:182:44)
    at Object.&lt;anonymous&gt; (http://localhost:18678/dist/app.bundle.js:7659:1)
    at __webpack_require__ (http://localhost:18678/dist/app.bundle.js:20:30)
    at Object.eval (eval at &lt;anonymous&gt; (http://localhost:18678/dist/app.bundle.js:4799:1), &lt;anonymous&gt;:1:113)
    at eval (eval at &lt;anonymous&gt; (http://localhost:18678/dist/app.bundle.js:4799:1), &lt;anonymous&gt;:71:30)
    at Object.&lt;anonymous&gt; (http://localhost:18678/dist/app.bundle.js:4799:1)
    at __webpack_require__ (http://localhost:18678/dist/app.bundle.js:20:30)
"><pre class="notranslate"><code class="notranslate">Uncaught Error: Module build failed: Error: EPERM: operation not permitted, open 'C:\Users\asus\Desktop\C# Web\Core\AngularAPI\ApiAngWebPack\WebApi\node_modules\webpack\buildin\global.js'
    at Error (native)
    at Error (native)
    at eval (eval at &lt;anonymous&gt; (http://localhost:18678/dist/app.bundle.js:530:1), &lt;anonymous&gt;:1:7)
    at Object.&lt;anonymous&gt; (http://localhost:18678/dist/app.bundle.js:530:1)
    at __webpack_require__ (http://localhost:18678/dist/app.bundle.js:20:30)
    at eval (eval at &lt;anonymous&gt; (http://localhost:18678/dist/app.bundle.js:7659:1), &lt;anonymous&gt;:182:44)
    at Object.&lt;anonymous&gt; (http://localhost:18678/dist/app.bundle.js:7659:1)
    at __webpack_require__ (http://localhost:18678/dist/app.bundle.js:20:30)
    at Object.eval (eval at &lt;anonymous&gt; (http://localhost:18678/dist/app.bundle.js:4799:1), &lt;anonymous&gt;:1:113)
    at eval (eval at &lt;anonymous&gt; (http://localhost:18678/dist/app.bundle.js:4799:1), &lt;anonymous&gt;:71:30)
    at Object.&lt;anonymous&gt; (http://localhost:18678/dist/app.bundle.js:4799:1)
    at __webpack_require__ (http://localhost:18678/dist/app.bundle.js:20:30)

</code></pre></div>
<p dir="auto">Checking within the solution explorer, there is no such buildin/global folder at node_modules/webpack. I open a <a href="http://stackoverflow.com/questions/40731616/webpack-duplicate-identifier-propertykey" rel="nofollow">SO question</a> but since it is something very specific to webpack, I will add it here too. Not sure if its a sum of errors or it is just one. I do not believe webpack creates buildings in node_modules folder <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vs2015/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vs2015">@vs2015</a>.</p>
<p dir="auto">Edit, to add versions:</p>
<p dir="auto">package.json</p>
<p dir="auto">"webpack": "2.1.0-beta.27",<br>
"webpack-dev-server": "^1.16.2"</p>
<p dir="auto">Found some issues related with vs2015 about this, but in my case there is no problems from vs2015 side <a href="http://stackoverflow.com/questions/31322525/typescript-confusing-duplicate-identifier-error-message" rel="nofollow">Similar SO question</a></p>
<h1 dir="auto">Bug report</h1>
<p dir="auto"><strong>What is the current behavior?</strong></p>
<p dir="auto">Getting following error message when setting:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="    splitChunks: {
      cacheGroups: false   // &lt;-- 
    }"><pre class="notranslate">    splitChunks: <span class="pl-kos">{</span>
      <span class="pl-c1">cacheGroups</span>: <span class="pl-c1">false</span>   <span class="pl-c">// &lt;-- </span>
    <span class="pl-kos">}</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="webpack --mode development --env.node_env=development"><pre class="notranslate"><code class="notranslate">webpack --mode development --env.node_env=development
</code></pre></div>
<blockquote>
<p dir="auto">Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.</p>
<ul dir="auto">
<li>configuration.optimization.splitChunks should be one of these:<br>
false | object { chunks?, minSize?, minChunks?, maxAsyncRequests?, maxInitialRequests?, name?, filename?, automaticNameDelimiter?, cacheGroups? }<br>
-&gt; Optimize duplication and caching by splitting chunks by shared modules and cache group<br>
Details:
<ul dir="auto">
<li>configuration.optimization.splitChunks should be false</li>
<li>configuration.optimization.splitChunks.cacheGroups should be an object.<br>
-&gt; Assign modules to a cache group (modules from different cache groups are tried to keep in separate chunks)<br>
error An unexpected error occurred: "Command failed.<br>
Exit code: 1</li>
</ul>
</li>
</ul>
</blockquote>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>
<p dir="auto">webpack.config.js:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="    splitChunks: {
      cacheGroups: false
    }"><pre class="notranslate">    splitChunks: <span class="pl-kos">{</span>
      <span class="pl-c1">cacheGroups</span>: <span class="pl-c1">false</span>
    <span class="pl-kos">}</span></pre></div>






<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto">The SplitChunks interface says:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cacheGroups?: false | string | ((...args: any[]) =&gt; any) | RegExp | { [key: string]: CacheGroupsOptions };"><pre class="notranslate"><code class="notranslate">cacheGroups?: false | string | ((...args: any[]) =&gt; any) | RegExp | { [key: string]: CacheGroupsOptions };
</code></pre></div>
<p dir="auto">I would expect no error when setting it to <code class="notranslate">false</code></p>


<p dir="auto"><strong>Other relevant information:</strong></p>
<p dir="auto">webpack version:  4.8.3<br>
Node.js version: v8.10.0<br>
Operating System: Win 10<br>
Additional tools: --</p>