-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 g c" is not creating scss style extension unless specify "--styleext scss" #533
Comments
ng g c
is not creating scss style extension unless specify --styleext scss
FYI, there is an issue opened for this problem in the angular-cli github 11045 |
this is much needed now. |
Here to report the bug as well. |
This seems like a duplicate of Looks like Nx is not using the defaults set for angular schematics. (Angular v6) will set your angular schematics defaults but NOT the nx schematics. you need to do this: then the components get the proper extension. ideally nx should be looking at the @angular ones and using them. |
@gkamperis thanks for your solution! |
@matheo @gkamperis thanks to you both! Hybrid answer for multiple settings if you don't want to use the CLI is to add them to the bottom of angular.json under the @nrwl/schematics rather than
|
@goelinsights Thanks very much for this. For me, I removed the prefix setting since each app might have different prefix:
Does anyone know how to generate
instead of just
? |
This issue hasn't been fixed yet, huh? |
@elishnevsky it can probably be closed. I believe the schematics setup solved the issue. |
Hi all! This issue has already been addressed in #158, we created some documentation to explain a little bit more what is going on. |
For those coming here using nx8, and wondering why the above comment/wiki link does not work, try: // angular.json(nx8)
"schematics": {
"@nrwl/angular:component": {
"styleext": "scss"
}
}, See also: #1653 |
Hi, for those who are using Angular 9, this works on my project. On our angular.json file do this: To fix it, open angular.json and search for
Explanation: This name has changed from |
Thank you, bro ! Finally made it for me |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
ng g c
is not creating scss style extension unless specify--styleext scss
Step to Reproduce
Output
Let's try again with
--styleext scss
Output
The text was updated successfully, but these errors were encountered: