- Ashik Nesin
Back in the day, Compass used to be the popular tool used to write CSS using Sass/Scss however in the following years tools got better and eventually, compass got discontinued.
Recently, I was working on a legacy project that uses compass for generating CSS from SCSS. And when setting up the development tools I ran into a couple of issues and resolved them and I'm documenting them here just in case someone also runs into the same issue.
I tried installing compass using Ruby and ran into this issue
NoMethodError on line ["89"] of /opt/homebrew/lib/ruby/gems/3.2.0/gems/compass-1.0.3/lib/compass/configuration/helpers.rb: undefined method `exists?' for File:Class
Apparently, this is because compass gem is not supported in the latest versions of Ruby.
I was able to make it work in Ruby 2.6
brew install email@example.com
gem install compass
And to verify if you've properly installed it. Just check for its version like this:
If it doesn't work, then try out your gem path properly
Happy legacy projects!