foundation / foundation/yeti

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

Open
#15,535 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
29.8k
Forks
5.4k
Avg merge
25m
Merged PRs (30d)
1

Description

## 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

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure with rails assets:precompile using the Foundation 6.9.0 SCSS files. Trace the import path from app/assets/stylesheets/application.scss through node_modules/foundation-sites/scss/foundation.scss, util/_util.scss, and util/_math.scss; done means the SCSS compiles without the reported SassC::SyntaxError.

Written by the indexing model from the issue text.

Assessment

Tech stack
rails, ruby, sass, scss
Domain
build-system, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.