foundation-sites icon indicating copy to clipboard operation
foundation-sites copied to clipboard

SassC::SyntaxError: Error: Invalid CSS after " @return math"

Open chirag-garg-dev opened this issue 5 months ago • 0 comments
trafficstars

What should happen?

The rails assets:precompile command should compile SCSS without errors when using the foundation-sites SCSS files in a Rails project.

What happens instead?

The precompilation fails with the following SassC error: SassC::SyntaxError: Error: Invalid CSS after " @return math": expected expression (e.g. 1px, bold), was ".abs($a);" on line 23:17 of node_modules/foundation-sites/scss/util/_math.scss from line 5:1 of node_modules/foundation-sites/scss/util/_util.scss from line 25:1 of node_modules/foundation-sites/scss/foundation.scss from line 14:1 of app/assets/stylesheets/application.scss

@return math.abs($a);

----------------^

Your Environment

  • Foundation version(s) used: 6.9.0

chirag-garg-dev avatar May 30 '25 14:05 chirag-garg-dev