DEV Community

Cover image for Analyzing SassC::SyntaxError in Ruby on Rails 7.0
Konstantin Filtschew
Konstantin Filtschew

Posted on

Analyzing SassC::SyntaxError in Ruby on Rails 7.0

I was running a up to date Ruby on Rails 7.0 project using cssbundling-rails. The project was in production for several months. After pushing the code to Continuous Integration (CI) using GitHub Actions it failed with an error:

$ sass ./app/assets/stylesheets/application.bootstrap.scss:./app/assets/builds/application.css --no-source-map --load-path=node_modules
Done in 3.38s.
rails aborted!
SassC::SyntaxError: Error: "var(--ts-pr-min)" is not a number for `max'
        on line 18581:18 of stdin, in function `max`
        from line 18581:18 of stdin
>>   padding-right: max(var(--ts-pr-min), var(--ts-pr-clear-button) + var(--ts-
   -----------------^
Enter fullscreen mode Exit fullscreen mode

It was not failing on development machine. What was wrong?

Keep on reading Analyzing SassC::SyntaxError in Ruby on Rails 7.0

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up