Skip to content
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

Could not resolve variable $c within #{$c}__label{ ... } #91

Open
mdominguez opened this issue May 15, 2021 · 1 comment · May be fixed by #103
Open

Could not resolve variable $c within #{$c}__label{ ... } #91

mdominguez opened this issue May 15, 2021 · 1 comment · May be fixed by #103

Comments

@mdominguez
Copy link

mdominguez commented May 15, 2021

Hi all,

I'm switching over from SCSS in BEM-notation to PostCSS and run into the following issue:

I declare the main selector as a $c: &; so I can use it throughout the rest of my .pcss file, but when I try to access it within something else inside that selector like #{$c}__label{ ... } I get the message:

Internal server error: postcss-advanced-variables: /Users/xxx/Sites/xxx/resources/styles/07-components/_primary-nav.pcss:13:16: Could not resolve the variable "$c" within "#{$c}__label"

Here's a screenshot of what I'm trying to do: screenshot

Don't know if anyone has any tips to achieve something like this? Thanks!

@joncarr
Copy link

joncarr commented Apr 12, 2023

Has this seriously gone untouched since 2021?

@armano2 armano2 linked a pull request Sep 20, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants