Angular 18 optimization error when running ng serve configuration

Discussão em 'Angular' iniciado por Diego, Novembro 21, 2024.

  1. Diego

    Diego Guest

    I am doing a Mock App in Angular 18. Following and example I want to simulate production environment.

    I just run ng generate environments without any problems and environment.ts files has been generated.

    When I want to simulate Production environment and execute the command

    ng generate environments


    I got the error

    Prebundling has been configured but will not be used because scripts optimization is enabled.


    How can I solve this issue?

    Thanks.

    Continue reading...

Compartilhe esta Página