Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ng serve does not watch for file changes in services #10628

Closed
ayush987goyal opened this issue May 4, 2018 · 4 comments
Closed

ng serve does not watch for file changes in services #10628

ayush987goyal opened this issue May 4, 2018 · 4 comments

Comments

@ayush987goyal
Copy link

After updating a project to v6, the file changes in services are not watched by ng serve. I generated a new project by ng new and then moved my old src/app directory to this new project.

Versions

Angular CLI: 6.0.0
Node: 8.9.3
OS: win32 x64
Angular: 6.0.0
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, http, language-service, material, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.6.0
@angular-devkit/build-angular     0.6.0
@angular-devkit/build-optimizer   0.6.0
@angular-devkit/core              0.6.0
@angular-devkit/schematics        0.6.0
@ngtools/webpack                  6.0.0
@schematics/angular               0.6.0
@schematics/update                0.6.0
rxjs                              6.1.0
typescript                        2.7.2
webpack                           4.6.0
@filipesilva
Copy link
Contributor

This issue is a duplicate of #1610. Please check that issue for known reasons why live-reload might fail. If I had to bet, you might have your import in a different case (e.g. my-Service vs my-service), which is a common mistake.

@ayush987goyal
Copy link
Author

It is working fine with @angular/[email protected], therefore had a doubt why it didn't work with v6.

@gabucito
Copy link

gabucito commented May 8, 2018

I actually have the same problem. Live reload was working before updating the project to angular-cli 6.
However, I tried creating a completely new project and live reload works fine.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants