foundation-sites: rails 4.2 Invalid CSS !global

It looks like the !global issue came back with the launch of rails 4.2 tonight.

Sass::SyntaxError at /join
Invalid CSS after "...ules: $modules ": expected "}", was "!global;"

Error Details:

// IMPORT ONCE
// We use this to prevent styles from being loaded multiple times for compenents that rely on other components.
$modules: () !default;
@mixin exports($name) {
  // Import from global scope
  $modules: $modules !global;
  // Check if a module is already on the list
  $module_index: index($modules, $name);
  @if (($module_index == null) or ($module_index == false)) {
    $modules: append($modules, $name) !global;
    @content;

The only thing I could do to get around this was to downgrade my gem to gem 'foundation-rails', '5.4.5'

Can anyone point me in the right direction? Thanks and Merry XMAS.

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 32 (4 by maintainers)

Commits related to this issue

Most upvoted comments

gem "foundation-rails", "= 5.5.2.1"
gem "sass-rails", "= 5.0.3"

worked for me

Try this. My problem solved with this

gem ‘foundation-rails’, ‘5.4.3.1’

then run

bundle update

This should do it for now tell they fix it 😃