Menu icon Foundation
Ruby Gem 5.4.3.1 to 5.4.4.0 SASS error in Rails

Rails won't start with 5.4.4.0. It seems to be an error in the _functions.scss. See below... The !global is new compared to 5.4.3.1 and removing it solves the problem. I haven't researched the intention of the addtional code.

$modules: () !default;
@mixin exports($name) {
  @if(not index($modules, $name)) {
    $modules: append($modules, $name)} !global;
    @content;
  }
}
            

         

Foundationrails

Rails won't start with 5.4.4.0. It seems to be an error in the _functions.scss. See below... The !global is new compared to 5.4.3.1 and removing it solves the problem. I haven't researched the intention of the addtional code.

$modules: () !default;
@mixin exports($name) {
  @if(not index($modules, $name)) {
    $modules: append($modules, $name)} !global;
    @content;
  }
}
            

         
Rafi Benkual about 5 years ago

This new code makes Foundation compatible with Sass 3.4. If you update Sass you should be good.

Rafi Benkual almost 5 years ago

Unfortunately Rails Sass is behind at 3.2 so...

We reverted Foundation to use Sass 3.3 so you get a deprecation warning but it works. So updating or creating a new project should resolve it. Alternatively you solution of removing !global works as well.