Jekyll::Converters::Scss, error in 'assets/main.scss'

Dear all,

I need help please. I’m trying to run bundle exec jekyll serve, but I encounter the following error:

/Users/mabalenk/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/sass-embedded-1.68.0-x86_64-darwin/lib/sass/embedded/connection.rb:28: warning: VM initialization failed: Current Mac OS X version 10.13 is lower than minimum supported version 10.14
  Conversion error: Jekyll::Converters::Scss encountered an error while converting 'assets/main.scss':
                    end of file reached
bundler: failed to load command: jekyll (/Users/mabalenk/.rbenv/versions/3.2.2/bin/jekyll)
/Users/mabalenk/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/sass-embedded-1.68.0-x86_64-darwin/lib/sass/embedded/varint.rb:20:in `readbyte': end of file reached (EOFError)
	from /Users/mabalenk/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/sass-embedded-1.68.0-x86_64-darwin/lib/sass/embedded/varint.rb:20:in `block in read'
	from /Users/mabalenk/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/sass-embedded-1.68.0-x86_64-darwin/lib/sass/embedded/varint.rb:19:in `loop'
	from /Users/mabalenk/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/sass-embedded-1.68.0-x86_64-darwin/lib/sass/embedded/varint.rb:19:in `read'
	from /Users/mabalenk/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/sass-embedded-1.68.0-x86_64-darwin/lib/sass/embedded/connection.rb:62:in `block in read'
	from /Users/mabalenk/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/sass-embedded-1.68.0-x86_64-darwin/lib/sass/embedded/connection.rb:61:in `synchronize'
	from /Users/mabalenk/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/sass-embedded-1.68.0-x86_64-darwin/lib/sass/embedded/connection.rb:61:in `read'
	from /Users/mabalenk/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/sass-embedded-1.68.0-x86_64-darwin/lib/sass/embedded/dispatcher.rb:77:in `receive_proto'
	from /Users/mabalenk/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/sass-embedded-1.68.0-x86_64-darwin/lib/sass/embedded/dispatcher.rb:19:in `block (2 levels) in initialize'
	from /Users/mabalenk/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/sass-embedded-1.68.0-x86_64-darwin/lib/sass/embedded/dispatcher.rb:18:in `loop'
	from /Users/mabalenk/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/sass-embedded-1.68.0-x86_64-darwin/lib/sass/embedded/dispatcher.rb:18:in `block in initialize'

Yes, I’m on a relatively old distribution of macOS (High Sierra v10.13.6). I use Ruby v3.2.2. Is there a workaround to bypass this error? Any help would be greatly appreciated. Thank you!

What version of Jekyll are you using (run jekyll --version)? Assuming it’s that latest Jekyll 4.x, then my first guess would be to try Jekyll 3.x which might be more compatible (it is the version used by Github pages).

Yes, your guess is correct! I’m using Jekyll v4.3.2. How do I downgrade Jekyll to v3.x.y?

I found a helpful StackOverflow post explaining how to downgrage Jekyll. I modified the Gemfile to specify the exact Jekyll version I needed:

gem "jekyll", "3.9.3"

Then I updated the entire Jekyll distribution to refresh (and possibly downgrade) the dependent gems:

bundle update jekyll