<p dir="auto">As per the following issue -&gt;<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="178249057" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/11780" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/11780/hovercard" href="https://github.com/angular/angular/issues/11780">#11780</a><br>
Compiler is not available in AOT. Do we have this available in near future in upcoming releases of Angular ?</p>
<p dir="auto">regards<br>
Vasuneet Arya</p>
<p dir="auto">When I run a command</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&quot;node_modules/.bin/ngc&quot; -p ./"><pre class="notranslate"><code class="notranslate">&gt;"node_modules/.bin/ngc" -p ./
</code></pre></div>
<p dir="auto">I get the error:</p>
<blockquote>
<p dir="auto">Error: Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function (position 65:17 in the original .ts file), resolving symbol COMPILER_PROVIDERS in .../node_modules/@angular/compiler/src/compiler.d.ts,</p>
</blockquote>
<p dir="auto">That all is related to this piece of code</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@NgModule({
    ...
    providers: [
        COMPILER_PROVIDERS
    ],  
})
export class AppModule {}"><pre class="notranslate"><code class="notranslate">@NgModule({
    ...
    providers: [
        COMPILER_PROVIDERS
    ],  
})
export class AppModule {}
</code></pre></div>
<p dir="auto">Once COMPILER_PROVIDERS are not declared</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    providers: [
        // COMPILER_PROVIDERS"><pre class="notranslate"><code class="notranslate">    providers: [
        // COMPILER_PROVIDERS
</code></pre></div>
<p dir="auto">then <strong>AOT works</strong> as expected... just ...  <strong>as also expected, the app is not</strong> working <em>(simply, COMPILER_PROVIDERS are needed for it)</em></p>
<p dir="auto">I did see this "encouraging disclaimer"</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/**
 * @module
 * @description
 * Entry point for all APIs of the compiler package.
 *
 * &lt;div class=&quot;callout is-critical&quot;&gt;
 *   &lt;header&gt;Unstable APIs&lt;/header&gt;
 *   &lt;p&gt;
 *     All compiler apis are currently considered experimental and private!
 *   &lt;/p&gt;
 *   &lt;p&gt;
 *     We expect the APIs in this package to keep on changing. Do not rely on them.
 *   &lt;/p&gt;
 * &lt;/div&gt;"><pre class="notranslate"><code class="notranslate">/**
 * @module
 * @description
 * Entry point for all APIs of the compiler package.
 *
 * &lt;div class="callout is-critical"&gt;
 *   &lt;header&gt;Unstable APIs&lt;/header&gt;
 *   &lt;p&gt;
 *     All compiler apis are currently considered experimental and private!
 *   &lt;/p&gt;
 *   &lt;p&gt;
 *     We expect the APIs in this package to keep on changing. Do not rely on them.
 *   &lt;/p&gt;
 * &lt;/div&gt;
</code></pre></div>
<p dir="auto">So - it is <strong>experimental</strong>, <strong>private</strong>, <strong>"I cannot rely on it"</strong> ... but I need it.</p>
<p dir="auto">Please, am I doing something wrong? or is intended ... <strong>COMPILER_PROVIDERS will never be supported by AOT</strong>?</p>