Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sass(c) compilation failure #789

Open
tlbraams opened this issue Oct 2, 2024 · 1 comment
Open

Sass(c) compilation failure #789

tlbraams opened this issue Oct 2, 2024 · 1 comment

Comments

@tlbraams
Copy link

tlbraams commented Oct 2, 2024

Hi, our asset pipeline failed when we tried to upgrade to the latest version (6.9.0.0) with the following error:

SassC::SyntaxError: Error: Invalid CSS after "    @return math": expected expression (e.g. 1px, bold), was ".abs($a);" (SassC::SyntaxError)

Investigating this failure led me to discover that this version introduced the use of '@use {x};' in the scss files. This syntax is only supported by dartsass and not libsass/rubysass. https://sass-lang.com/documentation/modules/

afbeelding

The (unreleased) update to 6.7.5 updated the gemspec to use the sassc gem instead of the sass. The now deprecated sass gem uses rubysass while sassc uses libsass. The update to 6.9.0.0 did not include a change to the dependencies indicating that the project now requires dartsass.

Was this an intentional change where a dependency update was missed or were you not aware that this syntax was not compatible with libsass?

@ayaman
Copy link
Contributor

ayaman commented Oct 3, 2024

I think this was unintentional and is simply a case of a missed dependency update. I created a pull request to fix this.

djmolny added a commit to International-Aerobatic-Club/iaccdb that referenced this issue Oct 20, 2024
Back-versioned the 'foundation-rails' gem as a workaround for foundation/foundation-rails#789
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants