title: How to fix: Error: Angular structure loaded both synchronously and asynchronously
body: <p>I just upgraded my Angular 6 project to Angular 11. This project has SSR implemented and here is the issue.</p>
  <p>When I run <code>ng run myapp:server</code> I get this error:</p>
  <pre><code>✔ Server application bundle generation complete.
  
  Initial Chunk Files | Names         |    Size
  main.js             | main          | 4.06 kB
  
                      | Initial Total | 4.06 kB
  
  Build at: 2021-04-22T14:02:16.388Z - Hash: 2a6aaefe9d15b8a7dedc - Time: 4907ms
  
  Error: Angular structure loaded both synchronously and asynchronously
  </code></pre>
  <p>In my <code>angular.json</code> I have this code:</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;$schema&quot;: &quot;./node_modules/@angular/cli/lib/config/schema.json&quot;,
    &quot;version&quot;: 1,
    &quot;newProjectRoot&quot;: &quot;projects&quot;,
    &quot;projects&quot;: {
      &quot;myapp&quot;: {
        &quot;root&quot;: &quot;&quot;,
        &quot;sourceRoot&quot;: &quot;src&quot;,
        &quot;projectType&quot;: &quot;application&quot;,
        &quot;prefix&quot;: &quot;app&quot;,
        &quot;schematics&quot;: {},
        &quot;architect&quot;: {
          &quot;server&quot;: {
            &quot;builder&quot;: &quot;@angular-devkit/build-angular:server&quot;,
            &quot;options&quot;: {
              &quot;outputPath&quot;: &quot;dist/server&quot;,
              &quot;main&quot;: &quot;server.ts&quot;,
              &quot;tsConfig&quot;: &quot;src/tsconfig.server.json&quot;
            }
          },
    // ...
  }
  </code></pre>
  <p>Any idea where I should check, update something?</p>