Änderungen im Code werden durch ng serve nicht publiziert

6 views
Skip to first unread message

andre....@netzwerkcenter.ch

unread,
Oct 18, 2017, 8:41:49 AM10/18/17
to Angular and AngularJS discussion
Hallo zusammen

Ich habe immer wider die Situation, dass neue Methoden nicht automatisch bei gestartetem ng serve verfügbar sind.
Erst nach dem ich via Ctr. + C den Server gestoppt habe, und dann wider via ng serve starte, sind die Änderungen
im Browser via localhost verfügbar.

Hat jemand von euch eine Idee, an was das liegen könnte?
Den Cache des Browsers habe ich versuchshalber mal gelöscht, aber nach einem Neuladen der Seite hatte ich
den gleichen Stand.

Danke für eure Hilfe
Gruss André

Sander Elias

unread,
Oct 18, 2017, 12:39:38 PM10/18/17
to Angular and AngularJS discussion
Hi Andre.

I'm not entirely sure on what you mean, The German language is not my forte. 
But yes, occasionally it happens that you need to reboot ng-serve to get it going again. Also, there was a release with a bug that didn't fully unload when you hit ctrl-c so you couldn't start again. Updating to the latest version helps on both accounts.

The not reloading on written updates is caused by a 3rth party plugin and is relative to the OS used. This is a long-standing issue that plagues most nodejs based build tools. I still hope this will be solved somehow in the future!

I hope I got your question right!

Regards
Sander

Zlatko Đurić

unread,
Oct 19, 2017, 3:12:53 AM10/19/17
to Angular and AngularJS discussion


On Wednesday, October 18, 2017 at 2:41:49 PM UTC+2, andre....@netzwerkcenter.ch wrote:
Hallo zusammen

Ich habe immer wider die Situation, dass neue Methoden nicht automatisch bei gestartetem ng serve verfügbar sind.
Erst nach dem ich via Ctr. + C den Server gestoppt habe, und dann wider via ng serve starte, sind die Änderungen
im Browser via localhost verfügbar.


It's unclear to me if this is something that happens for you always, on any change, or just sometimes, infrequently?

André Sauder

unread,
Oct 19, 2017, 3:23:39 AM10/19/17
to ang...@googlegroups.com
it is infrequently. when i work on the code, somtimes 2h everything is fine. then all changes in methodes are not deploy. next time
i work 30min and it works, then dont work.

--
You received this message because you are subscribed to a topic in the Google Groups "Angular and AngularJS discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/B6OkFmXwxnw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+unsubscribe@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages