-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
After add @ngrx/schematics to ng6 project, cli generate component with css instead of scss #1036
Comments
Fyi, in the meantime I believe you can pass the |
Yeah, of cource, we know this solution but it's a workaround. Before we don't additional param for this. |
Yea you're right, just said it in case someone has the same problem and doesn't know it is possible to pass it as an argument. |
This seems like an Angular CLI issue, since we're just extending those schematics. And you should verify this issue against the latest NgRx betas. |
I can verify the reported behavior with latest @ngrx/schematics. Still generates css files instead of scss, even though styleext is set to scss. package.json with used versions:
But thanks for posting the workaround! :) |
If you set the default styleext for |
@brandonroberts when putting the configurations inside |
Could you mention this information in the schematics documentation? |
I'm going to verify with the CLI team that its supposed to work that way. If so, then yes we'll update the docs. |
The CLI team confirmed that you should set the defaults for |
I created PR for this. |
I just noticed a similar bug. After following the same instructions above, it works for generating components, but not for containers. In other words:
|
I can't get this to work... Any news on this? Am I doing it wrong in
|
This is still not working with Angular 9 and ngrx 9.
Anything changed?
|
I'm submitting a...
What is the current behavior?
When we add schematics from ngrx and change default schematics collection, cli stop generate components with scss files.
When we revert the default collection, cli start again generate components with scss files.
Of course, we set
in angular.json file, also set with
@ngrx/schematics/angular:component
.Expected behavior:
When we use ngrx schematics as a default collection, cli should still generate scss, when it set.
Minimal reproduction of the problem with instructions:
@angular/[email protected]
angular.json
file using schematics:Optional try with
@ngrx/schematics/angular:component
instead of@schematics/angular:component
4. Generate component via CLI.
Version of affected browser(s),operating system(s), npm, node and ngrx:
node: 8.11.1
npm: 6.0.0
dependencies:
Other information:
angular.json
file:The text was updated successfully, but these errors were encountered: