-
Notifications
You must be signed in to change notification settings - Fork 12k
compiler fails on simplest of generated apps (with windows 10 junctions) #8603
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
Comments
glad I've found this thread, I have the same error message and I would never thought it's the windows junction issue. for me as well - if I copy the junction folder to a local folder and work with it then the above error is gone. I'm on windows 7. On previous projects that I worked with junction folders this problem didn't happen. I used to work with angular 4 without angular cli. I now started a new angular 5 project with angular cli by issuing 'new new ..' and added the source files from the angular 4 project just to end up with this error message. so I'm not sure which fault it is, angular 5 or angular cli. It still looks strange that the windows junction is causing this kind of a problem, as far as I understand the os handles it and this junction folder should be seen as a local folder to the referring code. I'm waiting for a solution on this one, the junction folder has a major importance since the code within it is shared among several projects, and now that it is not synced with the other code can lead to consistency bugs. please let us know once you can find something on this one. thanks. |
a correction on the previous note, I use hard link and not a soft link, which is actually a junction. |
This issue is very similar to #5167 but then it only happened to CSS files. Here it is also happening with TS files. |
I've found this thread, they show how to use the --preserve-symlinks parameter, it worked for me, for example: however, it would be better to have this parameter in angular-cli.json, it's there for ng build, but not for serve or test. |
This setup worked fine before the upgrade to the 1.6 branch though, I had used symlinks (junctions) in lots of projects. In the interim I've reverted to the 1.5 branch... I used ng build --watch |
for anyone stumbling onto this thread in the future... One possible solution is to add the following build entry to your .angular-cli.json defaults section "defaults": { As outlined here: |
@bealtine thanks for sharing this! |
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. |
Versions
Repro steps
using the most basic ng cli, using a "local dir" for "common files"works perfectly, however if I switch to a windows junction (with the same name and exactly the same files) compilation fails with:
Observed behavior
Desired behavior
What did you expect to see?
compiler to finish compilation...
test-cli.zip
Always happy to provide as much information as required...
The text was updated successfully, but these errors were encountered: