Skip to content

If we set buildOptimizer and aot to false, apllication throws error? #15174

@kumaresan-subramani

Description

@kumaresan-subramani

🐞 Bug report

I have created an angular with ASP .NET Core sample. when i try to run my angular application only using below command it is working fine

ng serve --prod

But when i set buildOptimizer and aot to false application throws error

🔥 Exception or Error

download (1)

My config:

download

🔬 Minimal Reproduction

  1. Download sample

  2. goto ClientApp folder

  3. give npm i command

  4. then give ng serve --prod

You will see reported error in console window

🌍 Your Environment




 "@angular/animations": "6.1.10",
    "@angular/common": "6.1.10",
    "@angular/compiler": "6.1.10",
    "@angular/core": "6.1.10",
    "@angular/forms": "6.1.10",
    "@angular/http": "6.1.10",
    "@angular/platform-browser": "6.1.10",
    "@angular/platform-browser-dynamic": "6.1.10",
    "@angular/platform-server": "6.1.10",
    "@angular/router": "6.1.10",

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: @angular-devkit/build-angularhelp wantedLabel noting an issue which the team is looking for contribution from the community to fixneeds: investigationRequires some digging to determine if action is needed

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions