Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

Just playing with Angular CLI.

Here is what I did:

  1. npm install -g angular-cli
  2. ng new PROJECT_NAME
  3. cd PROJECT_NAME
  4. ng serve
  5. hit the page at: http://localhost:4200/ in browser
  6. change app.component.ts file, no change in browser
  7. change app.component.html file, new change is automatically reflected in browser

What is that my change in ts file not detected?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
289 views
Welcome To Ask or Share your Answers For Others

1 Answer

This seems to be a problem with webpack 1.2.5. Rolling back one version worked for me.

Just run:

npm install --save @ngtools/webpack@1.2.4

You can read more about this issue here:

https://github.com/angular/angular-cli/issues/4338


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...