<p dir="auto">Hi guys,</p>
<p dir="auto">I have been trying to solve this issue for 64 hours and nothing. I am a bit tired. Could you help me please?</p>
<p dir="auto">Here is the project: <a href="https://github.com/slamby/slamby-website">https://github.com/slamby/slamby-website</a></p>
<p dir="auto">Right now I do not use the aot compilation for production, everything is ready to start it, but I have the same issue, generating ngFactory fiels: there are no ngFactory files generated, just js files.</p>
<p dir="auto">My tsconfig.aot.json</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
  &quot;compilerOptions&quot;: {
    &quot;target&quot;: &quot;es5&quot;,
    &quot;module&quot;: &quot;es2015&quot;,
    &quot;moduleResolution&quot;: &quot;node&quot;,
    &quot;outDir&quot;: &quot;./aot&quot;,
    &quot;sourceMap&quot;: true,
    &quot;emitDecoratorMetadata&quot;: true,
    &quot;experimentalDecorators&quot;: true,
    &quot;lib&quot;: [&quot;es2015&quot;, &quot;dom&quot;],
    &quot;noImplicitAny&quot;: true,
    &quot;suppressImplicitAnyIndexErrors&quot;: true,
    &quot;typeRoots&quot;: [ &quot;./node_modules/@types&quot; ],
    &quot;types&quot;: [
      &quot;node&quot;
    ]
  },
  &quot;files&quot;: [
    &quot;./src/app/app.module.ts&quot;
  ],
  &quot;angularCompilerOptions&quot;: {
   &quot;genDir&quot;: &quot;./aot&quot;,
   &quot;skipMetadataEmit&quot; : true
 }
}"><pre class="notranslate">{
  <span class="pl-ent">"compilerOptions"</span>: {
    <span class="pl-ent">"target"</span>: <span class="pl-s"><span class="pl-pds">"</span>es5<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"module"</span>: <span class="pl-s"><span class="pl-pds">"</span>es2015<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"moduleResolution"</span>: <span class="pl-s"><span class="pl-pds">"</span>node<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"outDir"</span>: <span class="pl-s"><span class="pl-pds">"</span>./aot<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"sourceMap"</span>: <span class="pl-c1">true</span>,
    <span class="pl-ent">"emitDecoratorMetadata"</span>: <span class="pl-c1">true</span>,
    <span class="pl-ent">"experimentalDecorators"</span>: <span class="pl-c1">true</span>,
    <span class="pl-ent">"lib"</span>: [<span class="pl-s"><span class="pl-pds">"</span>es2015<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>dom<span class="pl-pds">"</span></span>],
    <span class="pl-ent">"noImplicitAny"</span>: <span class="pl-c1">true</span>,
    <span class="pl-ent">"suppressImplicitAnyIndexErrors"</span>: <span class="pl-c1">true</span>,
    <span class="pl-ent">"typeRoots"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>./node_modules/@types<span class="pl-pds">"</span></span> ],
    <span class="pl-ent">"types"</span>: [
      <span class="pl-s"><span class="pl-pds">"</span>node<span class="pl-pds">"</span></span>
    ]
  },
  <span class="pl-ent">"files"</span>: [
    <span class="pl-s"><span class="pl-pds">"</span>./src/app/app.module.ts<span class="pl-pds">"</span></span>
  ],
  <span class="pl-ent">"angularCompilerOptions"</span>: {
   <span class="pl-ent">"genDir"</span>: <span class="pl-s"><span class="pl-pds">"</span>./aot<span class="pl-pds">"</span></span>,
   <span class="pl-ent">"skipMetadataEmit"</span> : <span class="pl-c1">true</span>
 }
}</pre></div>
<p dir="auto">Command to execute ngc:</p>
<blockquote>
<p dir="auto">node_modules/.bin/ngc -p tsconfig.aot.json</p>
</blockquote>
<p dir="auto">Output files print screen:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/18461114/21105702/801c0868-c08b-11e6-85fb-3cbdd99c5f61.png"><img src="https://cloud.githubusercontent.com/assets/18461114/21105702/801c0868-c08b-11e6-85fb-3cbdd99c5f61.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Angular pacakages:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="    &quot;@angular/common&quot;: &quot;~2.3.0&quot;,
    &quot;@angular/compiler&quot;: &quot;~2.3.0&quot;,
    &quot;@angular/compiler-cli&quot;: &quot;^2.3.0&quot;,
    &quot;@angular/core&quot;: &quot;~2.3.0&quot;,
    &quot;@angular/forms&quot;: &quot;~2.3.0&quot;,
    &quot;@angular/http&quot;: &quot;~2.3.0&quot;,
    &quot;@angular/platform-browser&quot;: &quot;~2.3.0&quot;,
    &quot;@angular/platform-browser-dynamic&quot;: &quot;~2.3.0&quot;,
    &quot;@angular/platform-server&quot;: &quot;^2.3.0&quot;,
    &quot;@angular/router&quot;: &quot;~3.3.0&quot;,"><pre class="notranslate">    <span class="pl-ent">"@angular/common"</span>: <span class="pl-s"><span class="pl-pds">"</span>~2.3.0<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"@angular/compiler"</span>: <span class="pl-s"><span class="pl-pds">"</span>~2.3.0<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"@angular/compiler-cli"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.3.0<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"@angular/core"</span>: <span class="pl-s"><span class="pl-pds">"</span>~2.3.0<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"@angular/forms"</span>: <span class="pl-s"><span class="pl-pds">"</span>~2.3.0<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"@angular/http"</span>: <span class="pl-s"><span class="pl-pds">"</span>~2.3.0<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"@angular/platform-browser"</span>: <span class="pl-s"><span class="pl-pds">"</span>~2.3.0<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"@angular/platform-browser-dynamic"</span>: <span class="pl-s"><span class="pl-pds">"</span>~2.3.0<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"@angular/platform-server"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.3.0<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"@angular/router"</span>: <span class="pl-s"><span class="pl-pds">"</span>~3.3.0<span class="pl-pds">"</span></span>,</pre></div>
<p dir="auto">Typescript:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&quot;typescript&quot;: &quot;^2.0.2&quot;,"><pre class="notranslate"><span class="pl-ent">"typescript"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.0.2<span class="pl-pds">"</span></span>,</pre></div>
<p dir="auto">Could you please help me?</p>
<p dir="auto">Hey guys,</p>
<p dir="auto">I just updated to angular/compiler 2.2.4 and my ngc is no longer creating my application ngFactory files in the specified outGen folder. The last working version of angular/compiler on my stack was 2.1.2. I'm currently on node 6.9.1 and angular 2.2.4. You can check out my stack <a href="https://github.com/projectSHAI/GOAT-stack">here</a> and follow the instructions below to reproduce the process</p>
<p dir="auto">Thanks in advance!<br>
JT</p>
<p dir="auto"><strong>I'm submitting a ...</strong>  (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong></p>

<p dir="auto">initial angular/compiler compilation; app.module.ngFactory file not being created</p>
<p dir="auto"><strong>Expected behavior</strong></p>

<p dir="auto">app.module.ngFactory file would be created along with component factories</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p>
<ul dir="auto">
<li>clone <a href="https://github.com/projectSHAI/GOAT-stack">https://github.com/projectSHAI/GOAT-stack</a></li>
<li>run commands
<ul dir="auto">
<li><code class="notranslate">npm install</code></li>
<li><code class="notranslate">gulp prod</code></li>
</ul>
</li>
<li>ngc-aot folder should have node_module factories and app factories
<ul dir="auto">
<li>app factories missing!!</li>
</ul>
</li>
</ul>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p>

<p dir="auto">cannot compile AoT</p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>

<p dir="auto">MEAN stack</p>
<ul dir="auto">
<li>
<p dir="auto"><strong>Angular version:</strong> 2.2.4</p>
</li>
<li>
<p dir="auto"><strong>Browser:</strong> [all]</p>
<ul dir="auto">
<li>(not a dom issue)</li>
</ul>
</li>
<li>
<p dir="auto"><strong>Language:</strong> [TypeScript 2.1.1]</p>
</li>
<li>
<p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =  6.9.1</p>
</li>
</ul>