ng serve is about 5 times slower when compiling with IonicModule (Angular 7)
See original GitHub issueBug Report
Ionic version: [x] 4.x
Current behavior:
A brand new angular project has a compile time < 1 second. When I add @ionic/angular
, the compile time becomes on average > 5 seconds when using it with ng serve
Any idea why this happens? Is this an ionic issue?
Expected behavior: Expected compile time to be as fast as Ionic3 or faster.
Steps to reproduce:
1, Start a new angular project
2. run ng serve, change app.component.htm multiple times and notice how the compile time is < 1seconds after a couple compiles
2. run npm i @ionic/angular
3. Add IonicModule to the angular module
4. run ng serve and notice how the average time is now > 5 seconds.
Related code:
Other information:
Ionic info:
Ionic:
ionic (Ionic CLI) : 4.6.0
System:
NodeJS : v10.15.0
npm : 6.5.0
OS : Windows 10
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
ng serve is about 5 times slower when compiling with ... - GitHub
Here's my package.json after adding your suggestion. As soon as I add IonicModule.forRoot() , my compile time becomes > 5 seconds up from...
Read more >NG serve takes long time to start - Stack Overflow
In my case (Angular v. 11), ng serve takes about 1 minute to serve the app, but the ng-serve --source-map=false takes somewhere from...
Read more >A small tip to speed up development with Angular or Ionic
When you do ng serve , Angular serves the app from memory instead of the dist folder (the file system). This means the...
Read more >Using Custom Components on Multiple Pages in Ionic
In this tutorial, we take a look at some common pitfalls when using custom components and how you can use custom components across...
Read more >Ionic 3 Consuming REST API using New Angular 4.3 HttpClient
A comprehensive step by step tutorial of how to consuming REST API using an Angular HttpClient for Ionic 3 mobile apps (Android/iOS)
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Tracking progress here: https://github.com/ionic-team/ionic/issues/17001
Thanks for the issue report!
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.