title: Blank white screen after updating Angular from 7.3 to 13
body: <p>I really hope someone can help us.<br />
  I am new to Angular and got a project inherited.<br />
  I have an Angular project with version 7.3, which causes us troubles when we really try to work with it or to update it.<br />
  With version 7.3 the project is running so long as you dont add any packages or delete the node-modules file and run &quot;npm i&quot; for installing all dependencies/packages again. The results in these cases are a blank white screen when running the application.<br />
  So now we considered it a better idea to update the project to the newer version 13 of anuglar, so everything is up to date and that the handling will maybe be better.
  The node version is 16.3.0, npm is version 8.1.3.</p>
  <ol>
  <li>So I followed the instructions of the angular update guide: <a href="https://update.angular.io/" rel="nofollow noreferrer">https://update.angular.io/</a></li>
  <li>I deleted node_modules and package-lock.json serveral times an did &quot;npm i --legacy-peer-deps&quot; after that</li>
  <li>I deleted  &quot;es5BrowserSupport&quot;: true in angular.json</li>
  <li>I added &quot;enableIvy&quot;: true, &quot;fullTemplateTypeCheck&quot;: false under &quot;angularCompilerOptions&quot; in the tsconfig.json</li>
  <li>I added types/jest</li>
  <li>In angular.modules I added &quot;CUSTOM_ELEMENTS_SCHEMA&quot; under Ng-Modules.schema</li>
  </ol>
  <p>My current package.json file:</p>
  <pre><code>  &quot;name&quot;: &quot;webapp&quot;,
    &quot;version&quot;: &quot;0.0.0&quot;,
    &quot;scripts&quot;: {
      &quot;ng&quot;: &quot;ng&quot;,
      &quot;start&quot;: &quot;ng serve --host 0.0.0.0&quot;,
      &quot;build&quot;: &quot;ng serve&quot;,
      &quot;test&quot;: &quot;ng test&quot;,
      &quot;lint&quot;: &quot;ng lint&quot;,
      &quot;e2e&quot;: &quot;ng e2e&quot;
    },
    &quot;private&quot;: true,
    &quot;type&quot;: &quot;commonjs&quot;,
    &quot;dependencies&quot;: {
      &quot;@angular/animations&quot;: &quot;~13.0.0&quot;,
      &quot;@angular/cdk&quot;: &quot;~13.0.0&quot;,
      &quot;@angular/common&quot;: &quot;~13.0.0&quot;,
      &quot;@angular/compiler&quot;: &quot;~13.0.0&quot;,
      &quot;@angular/core&quot;: &quot;^13.0.0&quot;,
      &quot;@angular/flex-layout&quot;: &quot;^12.0.0-beta.35&quot;,
      &quot;@angular/forms&quot;: &quot;~13.0.0&quot;,
      &quot;@angular/material&quot;: &quot;^13.0.0&quot;,
      &quot;@angular/platform-browser&quot;: &quot;~13.0.0&quot;,
      &quot;@angular/platform-browser-dynamic&quot;: &quot;~13.0.0&quot;,
      &quot;@angular/router&quot;: &quot;^13.0.0&quot;,
      &quot;@ng-bootstrap/ng-bootstrap&quot;: &quot;^10.0.0&quot;,
      &quot;angular-plotly.js&quot;: &quot;^1.1.0&quot;,
      &quot;angular-resizable-element&quot;: &quot;^4.0.0&quot;,
      &quot;angular-resize-element&quot;: &quot;^1.2.0&quot;,
      &quot;bootstrap&quot;: &quot;^5.1.3&quot;,
      &quot;core-js&quot;: &quot;^3.19.1&quot;,
      &quot;express&quot;: &quot;^4.16.4&quot;,
      &quot;http-server&quot;: &quot;^14.0.0&quot;,
      &quot;lodash&quot;: &quot;^4.17.21&quot;,
      &quot;material-design-icons&quot;: &quot;^3.0.1&quot;,
      &quot;mongoose&quot;: &quot;^5.4.11&quot;,
      &quot;ng-sidebar&quot;: &quot;^8.0.0&quot;,
      &quot;ngx-bootstrap&quot;: &quot;^3.2.0&quot;,
      &quot;plotly.js&quot;: &quot;^1.45.2&quot;,
      &quot;raphael&quot;: &quot;^2.2.8&quot;,
      &quot;rxjs&quot;: &quot;~6.6.7&quot;,
      &quot;tslib&quot;: &quot;^1.14.1&quot;,
      &quot;util&quot;: &quot;^0.12.4&quot;,
      &quot;zone.js&quot;: &quot;~0.11.4&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@angular-builders/custom-webpack&quot;: &quot;13.0.0&quot;,
      &quot;@angular-devkit/build-angular&quot;: &quot;^13.0.1&quot;,
      &quot;@angular/cli&quot;: &quot;^13.0.1&quot;,
      &quot;@angular/compiler-cli&quot;: &quot;^13.0.0&quot;,
      &quot;@angular/language-service&quot;: &quot;~13.0.0&quot;,
      &quot;@types/hammerjs&quot;: &quot;^2.0.40&quot;,
      &quot;@types/jasmine&quot;: &quot;~3.10.2&quot;,
      &quot;@types/jasminewd2&quot;: &quot;~2.0.3&quot;,
      &quot;@types/jest&quot;: &quot;^27.0.3&quot;,
      &quot;@types/node&quot;: &quot;^8.9.5&quot;,
      &quot;codelyzer&quot;: &quot;~4.5.0&quot;,
      &quot;jasmine-core&quot;: &quot;~2.99.1&quot;,
      &quot;jasmine-spec-reporter&quot;: &quot;~4.2.1&quot;,
      &quot;karma&quot;: &quot;^6.3.7&quot;,
      &quot;karma-chrome-launcher&quot;: &quot;~2.2.0&quot;,
      &quot;karma-coverage-istanbul-reporter&quot;: &quot;~2.0.1&quot;,
      &quot;karma-jasmine&quot;: &quot;~1.1.2&quot;,
      &quot;karma-jasmine-html-reporter&quot;: &quot;^0.2.2&quot;,
      &quot;process&quot;: &quot;^0.11.10&quot;,
      &quot;protractor&quot;: &quot;~5.4.0&quot;,
      &quot;ts-node&quot;: &quot;~7.0.0&quot;,
      &quot;tslint&quot;: &quot;^5.11.0&quot;,
      &quot;typescript&quot;: &quot;&gt;=4.4.0 &lt;4.5.0&quot;,
      &quot;webpack&quot;: &quot;~5.64.4&quot;,
      &quot;webpack-cli&quot;: &quot;~4.9.1&quot;,
      &quot;webpack-dev-server&quot;: &quot;~4.5.0&quot;
    },
    &quot;description&quot;: &quot;This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.3.0.&quot;,
    &quot;main&quot;: &quot;index.js&quot;,
    &quot;author&quot;: &quot;&quot;,
    &quot;license&quot;: &quot;ISC&quot;
  }
  </code></pre>
  <p>My current tsconfig.json file:</p>
  <pre><code>{
    &quot;compileOnSave&quot;: false,
    &quot;compilerOptions&quot;: {
      &quot;resolveJsonModule&quot;: true,
      &quot;esModuleInterop&quot;: true,
      &quot;baseUrl&quot;: &quot;./&quot;,
      &quot;outDir&quot;: &quot;./dist/out-tsc&quot;,
      &quot;sourceMap&quot;: true,
      &quot;declaration&quot;: false,
      &quot;module&quot;: &quot;es2015&quot;,
      &quot;types&quot; : [&quot;node&quot;, &quot;jest&quot;],
      &quot;moduleResolution&quot;: &quot;node&quot;,
      &quot;emitDecoratorMetadata&quot;: true,
      &quot;experimentalDecorators&quot;: true,
      &quot;noImplicitAny&quot;: false,
      &quot;importHelpers&quot;: true,
      &quot;target&quot;: &quot;es2015&quot;,
      &quot;typeRoots&quot;: [
        &quot;node_modules/@types&quot;
      ],
      &quot;lib&quot;: [
        &quot;es2018&quot;,
        &quot;dom&quot;
      ]
  
  
    },
    &quot;angularCompilerOptions&quot;: {
      &quot;enableIvy&quot;: true,
      &quot;fullTemplateTypeCheck&quot;: false
    }
  }
  </code></pre>
  <p>My tsconfig.app.json :</p>
  <pre><code>{
    &quot;extends&quot;: &quot;../tsconfig.json&quot;,
    &quot;compilerOptions&quot;: {
      &quot;outDir&quot;: &quot;../out-tsc/app&quot;,
      &quot;types&quot;: [
        &quot;node&quot;
      ]
    },
    &quot;exclude&quot;: [
      &quot;test.ts&quot;,
      &quot;**/*.spec.ts&quot;
    ]
  }
  </code></pre>
  <p>My tsconfig.spec.json:</p>
  <pre><code>{
    &quot;extends&quot;: &quot;../tsconfig.json&quot;,
    &quot;compilerOptions&quot;: {
      &quot;outDir&quot;: &quot;../out-tsc/spec&quot;,
      &quot;types&quot;: [
        &quot;jasmine&quot;,
        &quot;node&quot;
      ]
    },
    &quot;files&quot;: [
      &quot;test.ts&quot;,
      &quot;polyfills.ts&quot;
    ],
    &quot;include&quot;: [
      &quot;**/*.spec.ts&quot;,
      &quot;**/*.d.ts&quot;
    ]
  }
  </code></pre>
  <p>My terminal after &quot;ng serve&quot; :</p>
  <pre><code> Browser application bundle generation complete.
  
  Initial Chunk Files   | Names         |      Size
  main.js               | main          | 943.59 kB
  styles.css, styles.js | styles        | 370.39 kB
  polyfills.js          | polyfills     | 164.77 kB
  runtime.js            | runtime       |   1.32 kB
  
                        | Initial Total |   1.45 MB
  
  Build at: 2021-12-02T10:14:14.625Z - Hash: d4934bcc2eb62a37 - Time: 27493ms
  
  Warning: C:/Users/&lt;...&gt;/Documents/test/Software-Analytics/WebAngular/webapp/src/app/pre-analysis.ts is part of the TypeScript compilation but it's unused.
  Add only entry points to the 'files' or 'include' properties in your tsconfig.
  
  Warning: C:/Users/&lt;...&gt;/Documents/test/Software-Analytics/WebAngular/webapp/src/app/resizable.directive.ts is part of the TypeScript compilation but it's unused.
  Add only entry points to the 'files' or 'include' properties in your tsconfig.
  
  Warning: C:/Users/&lt;...&gt;/Documents/test/Software-Analytics/WebAngular/webapp/src/environments/environment.prod.ts is part of the TypeScript compilation but it's unused.
  Add only entry points to the 'files' or 'include' properties in your tsconfig.
  
  
  
  ** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
  
  
  √ Compiled successfully.
  </code></pre>
  <p>The output on the browser console:</p>
  <pre><code>[webpack-dev-server] Disconnected! polyfills.js:1:15309
  [webpack-dev-server] Trying to reconnect... polyfills.js:1:15309
  [webpack-dev-server] Live Reloading enabled. polyfills.js:1:15309
  [webpack-dev-server] Warnings while compiling. polyfills.js:1:15374
  [webpack-dev-server] WARNING
  C:/Users/Leonie.Tischer/Documents/test/Software-Analytics/WebAngular/webapp/src/app/pre-analysis.ts is part of the TypeScript compilation but it's unused.
  Add only entry points to the 'files' or 'include' properties in your tsconfig. polyfills.js:1:15374
  [webpack-dev-server] WARNING
  C:/Users/Leonie.Tischer/Documents/test/Software-Analytics/WebAngular/webapp/src/app/resizable.directive.ts is part of the TypeScript compilation but it's unused.
  Add only entry points to the 'files' or 'include' properties in your tsconfig. polyfills.js:1:15374
  [webpack-dev-server] WARNING
  C:/Users/Leonie.Tischer/Documents/test/Software-Analytics/WebAngular/webapp/src/environments/environment.prod.ts is part of the TypeScript compilation but it's unused.
  Add only entry points to the 'files' or 'include' properties in your tsconfig. polyfills.js:1:15374
  Uncaught ReferenceError: process is not defined
      607 http://localhost:4200/main.js:1
      a http://localhost:4200/runtime.js:1
      185 http://localhost:4200/main.js:1
      a http://localhost:4200/runtime.js:1
      J http://localhost:4200/main.js:1
      &lt;anonymous&gt; http://localhost:4200/main.js:1
      n http://localhost:4200/runtime.js:1
      &lt;anonymous&gt; http://localhost:4200/main.js:1
  </code></pre>
  <p>I already tried to &quot;Add only entry points to the 'files' or 'include' properties in your tsconfig.&quot; , but I just got errors. Also tried to add a webpack.config.json file , but this didnt work either.</p>
  <p>What do I miss?</p>
  <p>Thank you for your help, it is really appreciated. Thank you.</p>