Ionic-app-scripts: 2 Inconsistency in compiling ionic - js files not updated

Created on 14 Oct 2017  路  2Comments  路  Source: ionic-team/ionic-app-scripts

I am using ionic 3, (exact versions bellow)
I am having huge issues with compile / builds inconsistency:

Reproduce:

  1. run ionic serve
  2. change line of code in a .ts file, the browser gets refresh indication, but js files not updated / or created if i delete the js.
  3. after js files updated - it does happen from time to time, it is not reflected in the running app while i am still under the ionic serve, just when i stop the ionic serve, and run it again. it catches the changes.

https://forum.ionicframework.com/t/inconsistency-in-compiling-ionic-ts-code-not-updated-to-js-and-not-updated-in-the-webpack/108831/3

  • I was working with ionic 1 and 2, and never face such issues, and it start happening about 1-1.5 month ago,
    clearly, while using ionic serve, you have expectations that the code changes will reflected as soon as the browser finish to reload, the inconsistency in it, is a development nightmare.

@ionic/cli-utils : 1.13.0
ionic (Ionic CLI) : 3.13.0
cordova (Cordova CLI) : 7.0.1
@ionic/app-scripts : 3.0.0
Cordova Platforms : ios 4.4.0
Ionic Framework : ionic-angular 3.6.1
ios-deploy : 1.9.2
Node : v8.2.1
npm : 5.4.2
OS : macOS Sierra
Xcode : Xcode 9.0 Build version 9A235

Most helpful comment

Same problem here with devDependencies (from package.json) containing:
"ionic/app-scripts": "^3.0.0"

The command "ionic-app-scripts serve" does not seem to reload the changed .ts files on save.

The only way around it so far is to manually kill and relaunch "ionic serve" command.

OS: Ubuntu 16.04.3 LTS (xenial)
Browsers tried :
- Firefox 56.0 (64-bit)
- Google Chrome Version 61.0.3163.100 (Official Build) (64-bit)

This problem clearly seemed to appear with the "3.0.0" version of ionic/app-scripts. Proof being that replacing "^3.0.0" by "2.1.3" seemed to get rid of the problem for now.

Question is : is this wanted ? It looks like a regression to me

All 2 comments

maybe a hint to the source of the problem, no-matter what changes i have made to a service file named: message.service.ts it hasn't compiled a .js file.
Just after making a random change, to a component file, message.component.ts (which includes the message.service.ts file), it triggered compiling of the message.service.ts file, and created message.service.js file

Same problem here with devDependencies (from package.json) containing:
"ionic/app-scripts": "^3.0.0"

The command "ionic-app-scripts serve" does not seem to reload the changed .ts files on save.

The only way around it so far is to manually kill and relaunch "ionic serve" command.

OS: Ubuntu 16.04.3 LTS (xenial)
Browsers tried :
- Firefox 56.0 (64-bit)
- Google Chrome Version 61.0.3163.100 (Official Build) (64-bit)

This problem clearly seemed to appear with the "3.0.0" version of ionic/app-scripts. Proof being that replacing "^3.0.0" by "2.1.3" seemed to get rid of the problem for now.

Question is : is this wanted ? It looks like a regression to me

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hermitdemschoenenleben picture hermitdemschoenenleben  路  3Comments

janpio picture janpio  路  3Comments

loicfavory picture loicfavory  路  4Comments

nalkon picture nalkon  路  4Comments

jgw96 picture jgw96  路  3Comments