Skip to content

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

Description

@frontedbe

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions