Angular-cli: No error reported when using buildOptimizer with aot set to false

Created on 7 Jun 2018  路  3Comments  路  Source: angular/angular-cli

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

devkibuild-angular medium regression bufix

Most helpful comment

I think we're swallowing an error somewhere. Using the buildOptimizer option (which is in the prod default) without AOT should show an error. But it doesn't seem to be showing it.

You should be able to use ng build --prod --aot=false --build-optimizer=false as a workaround for now, but we should fix this to show the proper error.

All 3 comments

I think we're swallowing an error somewhere. Using the buildOptimizer option (which is in the prod default) without AOT should show an error. But it doesn't seem to be showing it.

You should be able to use ng build --prod --aot=false --build-optimizer=false as a workaround for now, but we should fix this to show the proper error.

its working for me with ng b --prod --aot=false --build-optimizer=true

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings