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

npm start does work when app is started, but error comes as "ENOENT: no such file or directory, stat 'D:\projects\ang6\src\app\shared\loader\loader.component.ngfactory.js'" when we modify and save the any file. #395

Closed
2 tasks
muthukumaroptisol opened this issue Oct 16, 2018 · 3 comments

Comments

@muthukumaroptisol
Copy link

I'm submitting a...

  • [X ] Bug report
  • Feature request
  • Documentation issue or request

Current behavior

npm start does work when app is started, but when ever I try to modify and save, compiler fails to reload and below error as shows.
Error: ENOENT: no such file or directory, stat 'D:\projects\ang6\src\app\shared\loader\loader.component.ngfactory.js'
at Object.fs.statSync (fs.js:948:11)

Expected behavior

It should be reload without error.

Minimal reproduction of the problem with instructions

Environment

![error-1](https://user-images.githubusercontent.com/6176436/47036929-37235a80-d19b-11e8-8a65-5119c041fa19.jpg)
![error-1](https://user-images.githubusercontent.com/6176436/47036968-54582900-d19b-11e8-8ca1-b6360d75b3c1.jpg)
- node version: 8.9.1  <!-- run `node --version` -->
- npm version: 5.5.1 <!-- run `npm --version` -->
- OS:  Windows 10<!-- Mac, Linux, Windows -->

Others:

@austinlarue
Copy link

@muthukumaroptisol I'm also receiving this error. What did you end up doing that resolved the issue?

@muthukumaroptisol
Copy link
Author

@austinlarue I removed --aot in package.json. I saw that problem is for Angular cli version.

@dopry
Copy link

dopry commented Nov 1, 2018

see: angular/angular-cli#12260 and angular/angular-cli#11835 for possibly related upstream ng cli issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants