ionic-app-scripts 2.0.0 content not updated correctly

Created on 10 Jul 2017  ยท  7Comments  ยท  Source: ionic-team/ionic-app-scripts

Short description of the problem:

With ionic-app-scripts 2.0.0 when I'm updating content on my .ts page changes are not applied correctly..

In fact, when I'm adding for example a console.log in my constructor for the first time the change will be applied, but if I change again this console.log replacing for example console.log("hello") by console.log("hello ionic"); my browser will reload but only hello will be displayed.

However if I made a change on another page the older changed will be applied...

Steps to reproduce:

  1. ionic start myAmazingIonicApp --v2
  2. cd ./myAmazingIonicApp
  3. ionic serve
  4. type a console.log("hello"); into anywhere
  5. replace this console.log by console.log("hello 2");

Which @ionic/app-scripts version are you using? 2.0.0

Thanks in advance !

Most helpful comment

This should be fixed in nightly. Please try and let me know how it goes. If you have a custom webpack config, make sure you're updating it to only use ModuleConcatenationPlugin for prod builds.

npm install @ionic/app-scripts@nightly

Thanks,
Dan

All 7 comments

I have the same issue, after edit .ts file the edit not applied.

Same, however if I re-run ionic serve, files are updated as they should be

This should be fixed in nightly. Please try and let me know how it goes. If you have a custom webpack config, make sure you're updating it to only use ModuleConcatenationPlugin for prod builds.

npm install @ionic/app-scripts@nightly

Thanks,
Dan

I can confirm that this is fixed in the nightly (2.0.0-201707102058)
Thanks a lot !

Same here. Update works. Thanks for the quick fix.

> ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"
[10:09:57]  ionic-app-scripts 2.0.0-201707102058
[10:09:57]  watch started ...
[10:09:57]  build dev started ...
[10:09:57]  clean started ...
[10:09:57]  clean finished in 2 ms
[10:09:57]  copy started ...
[10:09:57]  transpile started ...
[10:10:01]  transpile finished in 3.56 s
[10:10:01]  preprocess started ...
[10:10:01]  deeplinks started ...
[10:10:01]  deeplinks finished in 353 ms
[10:10:01]  preprocess finished in 535 ms
[10:10:01]  webpack started ...
[10:10:01]  copy finished in 4.21 s
[10:10:13]  webpack finished in 12.03 s
[10:10:13]  sass started ...
[10:10:15]  sass finished in 1.71 s
[10:10:15]  postprocess started ...
[10:10:15]  postprocess finished in 5 ms
[10:10:15]  lint started ...
[10:10:15]  build dev finished in 17.89 s
[10:10:15]  watch ready in 18.18 s
[10:10:15]  dev server running: http://localhost:8100/

Great! This issue disturb me so long time. After update to #nightly, it is resolved.

I get this error when I try to update app-scripts:

npm WARN deprecated [email protected]: Please update to the latest object-keys
transfermarkt@ /media/saso/Data/www/projects/transfermarktApp
โ””โ”€โ”ฌ @ionic/[email protected] invalid
โ”œโ”€โ”ฌ [email protected]
โ”‚ โ””โ”€โ”€ [email protected]
โ”œโ”€โ”ฌ [email protected]
โ”‚ โ””โ”€โ”€ [email protected]
โ”œโ”€โ”ฌ [email protected]
โ”‚ โ””โ”€โ”€ [email protected]
โ””โ”€โ”ฌ [email protected]
โ””โ”€โ”€ UNMET PEER DEPENDENCY [email protected]

Was this page helpful?
0 / 5 - 0 ratings

Related issues

squallliu picture squallliu  ยท  62Comments

comfortme picture comfortme  ยท  127Comments

Bengejd picture Bengejd  ยท  56Comments

mburger81 picture mburger81  ยท  54Comments

Manduro picture Manduro  ยท  78Comments