1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Why does ng test show errors in non-test files, but ng build doesn't?

Discussão em 'Angular' iniciado por Fabian Röhrle, Junho 16, 2025.

  1. When I run ng build, even with the --configuration production flag, I don’t get any compilation errors. However, when I run ng test, I see compilation errors in non-test files (component files), as shown in the screenshot.

    Normally, such errors would also be highlighted by the IDE at the corresponding location, but in this case, they are only triggered and shown by ng test.

    The issue first appeared after I migrated Angular from version 16 to 19 using the Angular Update Guide.

    Any idea what might be causing this or how to investigate further?

    [​IMG]

    Continue reading...

Compartilhe esta Página