rails / sass-rails

Ruby on Rails stylesheet engine for Sass
MIT License
859 stars 333 forks source link

Scss suffixes is not working #450

Open ruannawe opened 1 year ago

ruannawe commented 1 year ago

When I run the command: bundle exec rake assets:precompile.

I receive the following error: Sass::SyntaxError: Invalid CSS after "&-": expected number or function, was "-another {".

My code:

.example {
    &-another {
        color: red;
    }
}

I'm using version 6 when I receive this error. Version 5.1 compile WITHOUT errors. Probably some bug between these two versions.