question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ng serve is about 5 times slower when compiling with IonicModule (Angular 7)

See original GitHub issue

Bug 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:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
manucorporatcommented, Jan 8, 2019

Tracking progress here: https://github.com/ionic-team/ionic/issues/17001

Thanks for the issue report!

0reactions
ionitron-bot[bot]commented, Feb 7, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found