ionic-team / ionic-cli

The Ionic command-line interface
MIT License
2k stars 656 forks source link

Ionic serve: File(s) changes not reflected in the browser, slows down development #2324

Open zarko-tg opened 7 years ago

zarko-tg commented 7 years ago

Ionic serve isn't serving the latest changes after saving a file. It's kind of a deal breaker during/for development. I am often forced to save a file at least once or restart ionic serve in order to work around this annoying issue.

Steps to reproduce:

  1. Unpack https://drive.google.com/file/d/0B4eB_Qz7OSaTVndrVC1TdlliSkE/view?usp=sharing
  2. Yarn (or npm install)
  3. ionic serve
  4. Make some small edit in src/components/bar/bar.html

The same issue is present even when using ionic CLI 2.2.3

global packages:

@ionic/cli-utils : 1.1.2
Ionic CLI        : 3.1.2

local packages:

@ionic/app-scripts              : 1.3.7
@ionic/cli-plugin-ionic-angular : 1.1.2
Ionic Framework                 : ionic-angular 3.2.1

System:

Node       : v6.10.3
OS         : macOS Sierra
Xcode      : Xcode 8.3.2 Build version 8E2002 
ios-deploy : 1.9.1 
ios-sim    : 5.0.13 
zarko-tg commented 7 years ago

If it may be of additional help, it seems this issue affects only one of the two types of lazy loading wiring - the so called Shared Common Modules as described in @mhartington's blog post at http://blog.ionic.io/ionic-and-lazy-loading-pt-2/ Once I rewire using the Encapsulated Modules pattern the issue seems to disappear.