-
Notifications
You must be signed in to change notification settings - Fork 12k
Global Styles doesn't works with cygwin #3284
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
Hello, you shouldn't add in app-root component global files.
|
Thank you @ar53n for the second workaround, I don't know why I didn't thought about it ... but I can't use Sass anymore with this solution, or I should create my own compilation task ... |
@noelmace try update angular-cli and create new project, because my css file work good to index.html. But "angular-cli": "1.0.0-beta.19-3" work good. |
@ar53n I have this issue in any new project created with angular-cli 1.0.0-beta.21, and in any existing project where I try to upgrade angular-cli to this version. When you said "because my css file work good to index.html", do you say that your project's apps[0].styles works with angular-cli 1.0.0-beta.21 and that you couldn't reproduce this issue ? Maybe I should in my case temporarily downgrade to angular-cli 1.0.0-beta.19-3, but this is a massive issue for the beta-21. |
same issue with 1.0.0-beta.19-3 |
@noelmace update all packages and in beta.21 work correctly. Check you project
|
This works fine with ng build, but not with ng serve. I think I checked everything now. See my project angular-buzz, I be really thankful i you can find something I didn't think about. |
@noelmace I did try that with clone of your project and it works for me. You have to put in your angular-cli.json
Then it works as expected. |
This is an issue with cygwin ! I tried exactly the same project with git bash, and everything is fine. I think cygwin isn't supported, so I close the issue (and definitively leave cygwin). Fell free to reopen it if an issue about cygwin is important. Thanks for your help. |
I have the same problem on Windows 10 (@angular/cli: 1.0.0, node: 7.5.0, os: win32 x64) using standard command line (cmd) |
Does the directory path for your project include a windows junction point? If I change to the actual drive and directory the project is contained in (ie the exact same project an files but without the junction point). I'm using @angular/cli v1.3.1 which appears to be in the copy I'm executing but unfortunately doesn't fix it for me :-( |
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. |
OS?
Windows 10 with Cygwin
Versions.
angular-cli: 1.0.0-beta.21
node: 6.9.1
os: win32 x64
Repro steps.
In any new project (ng new repro-css), the styles.css styles (and any other global style file) doesn't applied in the browser when you run
ng serve
from cygwin.In order to test, you can edit the styles.css file as follow :
run
ng serve
and in the browser, inspect the body element. Nothing ....my angular-cli.json file is :
The log given by the failure.
styles.css is in the styles.bundle.js file and is imported, but isn't applyied.
Mention any other details that might be useful.
The issue also apply with the bootstrap 4 css, following the global library install guide.
See #3202
It work the same with scss.
The text was updated successfully, but these errors were encountered: