Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

712
Vistas
Angular app builds white screen after upgrading to version 12

Issue description

I recently upgraded Angular app from v11 to v12. The whole upgrading process finished successfully without errors. However, when I build my application, application bootstraps as "white screen", and there are NO errors in the console.

The result is empty <router-outlet> tag:

enter image description here

During debugging I noticed a few things

  1. All code from app.component.ts got executed
  2. Code from main.ts got executed up until the point where app should be bootstrapped:
 platformBrowserDynamic().bootstrapModule(AppModule).catch((error) => {
  1. App only builds "white screen" with ng serve (development build), but builds fine on ng build (production build)

Reason of the issue

After 2 days of debugging I noticed that when I remove "sourceMap": true config from angular.json file, application builds fine with ng serve (development build) as well.

Question

Does anyone know why application builds "white screen" with "sourceMap": true config and how to prevent it? I would like to keep that config because of debugging purposes.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda