Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
some1awesome opened this issue Jun 7, 2018 · 3 comments · Fixed by #11657
Closed

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

some1awesome opened this issue Jun 7, 2018 · 3 comments · Fixed by #11657

Comments

@some1awesome
Copy link

some1awesome commented Jun 7, 2018

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

@filipesilva
Copy link
Contributor

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.

clydin added a commit to clydin/angular-cli that referenced this issue Jul 25, 2018
@alexeagle alexeagle changed the title Angular 6 can't create a build with aot set to false No error reported when using buildOptimizer with aot set to false Jul 28, 2018
hansl pushed a commit that referenced this issue Jul 30, 2018
hansl pushed a commit that referenced this issue Aug 1, 2018
@raviurlams
Copy link

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

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants