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-
-----------------^
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)