minimal-mistakes: Conversion error: Jekyll::Converters::Scss encountered an error while converting '/assets/css/main.scss'

After the bump to Jekyll 3, I’m getting this build error: Conversion error: Jekyll::Converters::Scss encountered an error while converting '/assets/css/main.scss': Invalid CSS after "...r : #3b5998": expected "{", was ";" on line 44.

That seems to be the $facebook-color: line imported from variables.scss but I have no idea what’s tripping up the converter.

Any ideas? Again, thanks for the help!

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 28 (7 by maintainers)

Commits related to this issue

Most upvoted comments

FWIW I think I saw this issue caused by two lines each containing --- at the top of an .scss file; I don’t remember why I’d added them (likely a hack to get something about Jekyll-plumbing/processing to work, maybe no longer necessary?), but removing them seemed to resolve this error.

What Should i do i have same error Conversion error: Jekyll::Converters::Scss encountered an error while converting ‘assets/css/style.scss’:

issue2

Please help me in that…

I got this build error : Conversion error: Jekyll::Converters::Scss encountered an error while converting 'assets/css/main.scss': Invalid GBK character "\xE2" on line 54 here is main.scss file:

---
# Only the main Sass file needs front matter (the dashes are enough)
---

@charset "utf-8";

@import "minimal-mistakes/skins/{{ site.minimal_mistakes_skin | default: 'default' }}"; // skin
@import "minimal-mistakes"; // main partials

if I remove ‘—’ then build with no error ,but can’t get main.css file

update: I found a way can solve it, but I don’t know why.

put this code Encoding.default_external = Encoding.find('utf-8') into D:\applications\Ruby25-x64\lib\ruby\gems\2.5.0\gems\sass-3.7.4\lib\sass\engine.rb file like this:

......
51 require 'sass/importers'
52 require 'sass/shared'
53 require 'sass/media'
54 require 'sass/supports'
55
56 Encoding.default_external = Encoding.find('utf-8')
57
58 module Sass
......

Had a free second and looked at you _sass partials. Wonder if line 42 in variables.scss is your problem. ======= underneath // Links is not valid and probably breaking the compiler. If this existed before updating to Jekyll 3 then perhaps you just got lucky that it didn’t fail… or silently failed. When in doubt diff against the files in my repo to see where the errors might have creeped in.

yaml

FWIW I think I saw this issue caused by two lines each containing --- at the top of an .scss file; I don’t remember why I’d added them (likely a hack to get something about Jekyll-plumbing/processing to work, maybe no longer necessary?), but removing them seemed to resolve this error.

I had the same problem, and solved it this way. Many thanks!

problem: image

solved: image

@asolene My Bugs Error Fixes and i know what should the mistake i do Capture . After so many errors in it but at last i deployed my Website Successfully.