-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Cannot create theme. "Mixins may not be defined within control directives or other mixins." #5232
Comments
Found the culprit. The |
Have the same issue. |
Also experiencing this issue with all my .scss files |
I have the same problem. |
@crisbeto we should probably separate the definitions anyway |
With gulp-sass 3.1.0, i have this error :
|
And i have this error if i try to compile my custom-angular-material.scss from .angular-cli.json :
To see my version of this, my package.json :
|
* Fixes an error in the input theming mixin that was caused by a nested mixin. * Removes the `mat-input-` prefix from the mixin local variables since they're not exposed and don't need to be prefixed. Fixes angular#5232.
Your fix allows me to build but is causing an issue with the prefix like so:
|
Use mdPrefix instead of md-prefix. Fixes issue. |
* Fixes an error in the input theming mixin that was caused by a nested mixin. * Removes the `mat-input-` prefix from the mixin local variables since they're not exposed and don't need to be prefixed. Fixes #5232.
Thx for this bug quickly fixed, know i can compile _theming.scss. My theme customization :@import '../../../node_modules/@angular/material/theming'; @include mat-core(); $candy-app-primary: mat-palette($mat-deep-orange); $candy-app-theme: mat-light-theme($candy-app-primary, $candy-app-accent, $candy-app-warn); @include angular-material-theme($candy-app-theme); .mat-radio-button.mat-accent { Errors :
Sass version :I compile with Sass, version : Sass 3.4.24 (Selective Steve) So, I failed somewhere ? Thanks. |
Adds a Stylelint rule that will prevent uses of nested mixins. This will help prevent issues like angular#5232 in the future.
Adds a Stylelint rule that will prevent uses of nested mixins. This will help prevent issues like #5232 in the future.
Still getting this with the latest beta.7 - beta.5 works fine ->
|
The fix wasn't a part of the latest beta. You can wait for the next one or install the latest master build:
|
Adds a Stylelint rule that will prevent uses of nested mixins. This will help prevent issues like angular#5232 in the future.
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. |
Bug, feature request, or proposal:
Bug
What is the expected behavior?
The .scss file compiles.
What is the current behavior?
Scss complier (I'm using VS2017 and Web Compiler) throws an error "Mixins may not be defined within control directives or other mixins.".
What are the steps to reproduce?
Importing the theming file from material seems to cause the error.
@import "../node_modules/@angular/material/theming";
What is the use-case or motivation for changing an existing behavior?
Migration from
2.0.0-beta.6
to2.0.0-beta.7
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular: 4.2.2
Material: 2.0.0-beta.7
OS: Windows 10
TypeScript: 2.3.4
The text was updated successfully, but these errors were encountered: