-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Base-level rules cannot contain the parent-selector-referencing character '&'. #1873
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
This error has existed since 3.0 which was released in May 2010. It's nonsensical to refer to a parent selector at the base-level of a stylesheet. Inferring that If this was part of a mixin that is sometimes included at the base level and sometimes nested, you can write the mixin like this: @mixin break-accessibility {
#{if(&, "&", "*")}:focus {
outline: none;
}
}
@include break-accessibility;
.foo {@include break-accessibility;} |
Ah thanks, just funny it first error out after i updated :) |
…s for horizontal/vertical flex alignment #7106
I've got that error when moved from "node-sass": "4.7.2" to "node-sass": "4.9.0", so if you need your working project urgently you can set up your previous version in devDependencies in package.json and continue to work. |
Hey guys,
after updating sass i got this error
Error: Base-level rules cannot contain the parent-selector-referencing character '&'.
The line it tells me is for this code
What can it be? it worked before i updated sass
The text was updated successfully, but these errors were encountered: