-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[Ionic V4-beta.12] Compiler takes up to one minute on ionic build
#15800
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
Comments
I also noticed the much longer build time, but I wasn't sure if it was something local to me or my machine and so I've been keeping an eye on the issues. I'm glad someone else reported it. This might be something worth investigating. I'm on a Mac OS High Sierra. |
Hello, I had the same problem, you must install node 10 and everything will be like before ;) |
@Yomyer works like a charm. 17 seconds compilation time |
Thx @Yomyer that helps a lot! Still with the recent ionic beta (12 as of writing) I get compile times of ~4500ms for a migrated real world project on a dev machine where ionic 3 compiles the original project always under 1000ms. I'm not sure if this a pill we have to swallow or if this could be improved... |
Yeah, incremental builds seem to be a bit slower with beta 12 vs. beta 11 (5-6 seconds vs. 3-4 seconds). Could also be changes in latest releases of Angular 6.x deps. Hopefully we don't have to reinstall/rebuild deps on every beta upgrade. |
Update to Node 10 is right. Compiling time from 79s to 7s. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Bug Report
Ionic Info
Run
ionic info
from a terminal/cmd prompt and paste the output below.Describe the Bug
When I run
time ionic build
, I get the following response:As you can see, it takes lots of time to compile the app. There's nothing special in the app. If I may be more accurate, There's nothing in the app. The only thing I did was changing
4.0.0-beta.7
to4.0.0-beta.12
. On Beta 7, it took me 13s to build the app.Steps to Reproduce
Steps to reproduce the behavior:
npm install
time ionic build
Related Code
Expected Behavior
The compiler shouldn't take so long to build the app. On the previous beta (11), it took me 21.816s to compile.
Additional Context
The text was updated successfully, but these errors were encountered: