[ionic4] Ionic serve take more than 1 mins to load / reload

hey all,

I’m trying to run a blank ionic 4 app (angular) and it takes more than 60 seconds to initial load and also and reloads after doing changes.

I would expect this is not to be the normal case and wanted to know if anyone else is also seeing the same. And if this is a know issue, any fix. I had a quick search and couldn’t find anything related to ionic4

Following are my ionic info

Ionic:

   ionic (Ionic CLI)             : 4.5.0 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.0.0-beta.17
   @angular-devkit/build-angular : 0.10.7
   @angular-devkit/schematics    : 7.0.7
   @angular/cli                  : 7.0.7
   @ionic/angular-toolkit        : 1.2.0

System:

   NodeJS : v8.10.0 (/usr/local/bin/node)
   npm    : 6.5.0
   OS     : macOS High Sierra

and I can see the following in my command line

thanks in advance

PS: I’m trying with a brand new ionic app

That is a typical start up time.

thanks @ChrisGriiffith , do you think it’s normal for reloading too. For an example, When I change something in
html (home.page.html), it takes about 50-60 seconds to reload the changes. cheers

One thing you might try is installing nvm and most recent node LTS (10.14.2 at time of writing).

1 Like

thanks @rapropos, upgrading to 10.14.2 fixed the issue. Now the initial loading time is about 10 seconds and reloads are around 3-5 seconds. cheers :+1:

Ionic:

   ionic (Ionic CLI)             : 4.5.0 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.0.0-beta.17
   @angular-devkit/build-angular : 0.10.7
   @angular-devkit/schematics    : 7.0.7
   @angular/cli                  : 7.0.7
   @ionic/angular-toolkit        : 1.2.0

System:

   NodeJS : v10.14.2 (/Users/sameeragayan/.nvm/versions/node/v10.14.2/bin/node)
   npm    : 6.4.1
   OS     : macOS High Sierra