title: Angular6 getting error when building site for production
body: <p>I was using Angular: 6.0.3 and when I updated my angular using npm update I am getting error when I am trying to build site for production.</p>
  
  <p>When I am running command:</p>
  
  <pre><code>ng build --prod
  </code></pre>
  
  <p>I am getting error:</p>
  
  <pre><code>ERROR in ./src/app/app.module.ngfactory.js Module build failed: TypeError: Cannot read property '_statSync' of undefined
  </code></pre>
  
  <p>Current angular version is: 6.1.10</p>
  
  <p>Full error you can see it here:<a href="https://gist.github.com/Shakir-Ali-t9l/d9f61f83f190ca12188c991e59a26f2d" rel="nofollow noreferrer">Full error report link </a></p>