-
Notifications
You must be signed in to change notification settings - Fork 12k
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 build fails w/ ERROR in ENOENT: no such file or directory, stat 'C:\C\code\##removed##\src\app\app.module.ts' #12035
Comments
This seems like a bug but we'll need to look at a reproduction to find and fix the problem. Can you setup a minimal repro please? You can read here why this is needed. A good way to make a minimal repro is to create a new app via This might be related to your directory structure so its really important to get an accurate repro to diagnose this. |
I was hoping that the duplicated drive in path ("C:\C\code") would ring some bells. |
You can clone this repo https://github.com/aguerot/angular-cli-issue-12035 for repro project This is a barebone project generated w/ see |
I think this might be a problem with our barrel following logic. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Command (mark with an
x
)Versions
node v8.9.4
npm 6.2.0
Windows 10 (can't repro on Linux and MacOS)
Repro steps
ng build
The log given by the failure
Desired functionality
Build app successfully
Mention any other details that might be useful
I found weird that the path logged in the error message mentions C drive twice ->"C:\C\code"
Project was originaly created in previous version of Angular and upgraded to ng6. Issue appeared after the migration to ng6
Workaround
I managed to compile my application if I change my file
\src\app\index.ts
from thisto this
The text was updated successfully, but these errors were encountered: