-
Notifications
You must be signed in to change notification settings - Fork 12k
"styles.css" and all other files in the "apps/styles" section of ".angular-cli.json" are ignored when running angular-cli from a path under a Windows 10 junction/directory symlink #6414
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
@RobertSundling Just tried to replicate the issue, seems to be working fine. Is there anything else I can do to reproduce? |
@sumitarora So, to be clear, the "background-color: red" style is actually used when you do the exact steps above? For me, it doesn't show up at all. Using
... in I've uninstalled angular-cli and reinstalled various versions, multiple times. Is there anything else I can try? I have the problem when I run this full sequence of commands:
|
OK, I was able to make it work here. This seems to be a problem with angular-cli and Windows 10 junctions and/or directory symbolic links (created with On my system, these files exist in a folder
If I run However, if I run It is definitely reading the file and processing
The output of
The output of
Perhaps some alternate webpack option is automatically being applied if the current path is under a junction/symlink which breaks the styles? |
Full steps to reproduce on WindowsInitialize the project:
Verify that the project correctly uses the styles when served from that directory:
Next, create a junction and/or a directory symlink (must run with elevated privileges):
Then, run from either the directory symlink or junction, and the styles are not used:
or
Can replace |
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. |
Uh oh!
There was an error while loading. Please reload this page.
Update: This only happens when the project path is underneath a Windows 10 junction or directory symlink. See comments below.
Bug Report or Feature Request (mark with an
x
)Versions.
Repro steps.
The log given by the failure.
None.
Desired functionality.
Mention any other details that might be useful.
The text was updated successfully, but these errors were encountered: