Build error with "custom.scss" #73
evanwill
announced in
Announcements
Replies: 1 comment 1 reply
-
The build error looked like this for one of our sites: Conversion error: Jekyll::Converters::Scss encountered an error while converting 'assets/css/custom.scss': |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If you are using a CB template copied before 2022-12-23, with the most up-to-date Jekyll packages, you might encounter a build error with the build failing on "custom.scss". The CB templates have been updated to fix this issue!
To fix it in your own existing template the best option is to rename the "custom.scss" file:
<link rel="stylesheet" href="{{ '/assets/css/custom.css' | relative_url }}" type="text/css">
to be<link rel="stylesheet" href="{{ '/assets/css/cb.css' | relative_url }}" type="text/css">
Alternatively, in your older existing projects, you can prevent Jekyll from updating the jekyll-sass-converter gem which is causing the issue. To do this, edit the "Gemfile" in your project, adding
gem "jekyll-sass-converter", "< 3.0"
on a new line. Delete your old "Gemfile.lock" then proceed as normal (i.e.bundle exec jekyll s
). The older version of jekyll-sass-converter will work.Beta Was this translation helpful? Give feedback.
All reactions