Skip to content

No error reported when using buildOptimizer with aot set to false #11157

Closed
@some1awesome

Description

@some1awesome

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Area

- [x] devkit
- [ ] schematics

Versions

node --version is v10.1.0
npm --version is 5.6.0

Repro steps

I ran ng new testtheprob
I entered the repo.
run ng build --prod --aot=false and notice that no dist folder is created
I then tried modifying the angular.json so that the prod build had aot:false
I ran ng build --prod and no dist folder was created

The log given by the failure

Nothing is printed to the console. The command just stops without building a dist folder. Also I tried running --verbose=true to see if that added details but it did not

Desired functionality

I need to be able to do a prod build without aot. Neither editing the angular.json file nor using the command line args works.

We have multiple servers that we are testing our code on, our app is so big that running an aot build takes several minutes, this won't work for us on some of our servers that we are deploying to many times per day. In angular 5 we were able to turn off aot, but are no longer able too with angular 6.

Mention any other details that might be useful

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions