title: Aot errors angular 2 different behaviour
body: <p>I'm building my angular 2 project with angular-cli. Locally I build it with no problem for prod <code>ng build --prod --aot</code>. When it is build on the server however the following errors are present:</p>
  
  <pre><code>...
   [1m [31mERROR in
  &lt;frontend/src/$$_gendir/app/incidents/dialog/tabs/measurements/incident.measurements.component.ngfactory.ts&gt;
  (1080,35): Supplied parameters do not match any signature of call
  target. [39m [22m
  
   [1m [31mERROR in
  &lt;frontend/src/$$_gendir/app/incidents/dialog/tabs/measurements/incident.measure.form.ngfactory.ts&gt;
  (1050,89): Property 'takenMeassure' does not exist on type
  'IncidentAction'. [39m [22m
  
   [1m [31mERROR in
  &lt;frontend/src/$$_gendir/app/shared/dropdown/custom-dropdown.component.ngfactory.ts&gt;
  (94,7): Supplied parameters do not match any signature of call
  target. [39m [22m
  ...
  </code></pre>
  
  <p>Those errors are correct and should be fixed, but why is the angular compiler more restrictive on the server machine than on my local one. The versions of all libraries are fixed and every time the project is build on the server the <code>node_modules</code> folder is deleted and all dependencies are downloaded again. Why do I get different behaviour when all the things are the same. Any idea is of great help :)</p>