Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

715
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda