Minimal-mistake: Error: Invalid CSS after "...fault: 'default"

Enviroment:

  • minimal-mistakes-jekyll (4.13.0)
  • jekyll (3.8.4)

Error message:


 Incremental build: disabled. Enable with --incremental
      Generating... 
  Conversion error: Jekyll::Converters::Scss encountered an error while converting 'assets/css/main.scss':
                    Invalid CSS after "...fault: 'default": expected "{", was "' }}"; // skin" on line 5
jekyll 3.8.4 | Error:  Invalid CSS after "...fault: 'default": expected "{", was "' }}"; // skin" on line 5

Before that I tried to fix a problem like the minimal-mistake #1244 issue creating my own assets/css/main.scss file commenting a problematic line:

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

Now I have no idea how to fix it.

Thanks in advance.

You have a public repo?

How have you installed the theme:

  • as a Ruby gem?
  • as a remote theme?
  • forked the repo?
1 Like

It’s the Ruby gem, yes, as said: minimal-mistakes-jekyll (4.13.0). No forking.

Sincerelly, I don’t know what a remote theme is O:-)

I though installing the gem and proper configuring _config.yml and Gemfile was enough :-m

Here it’s the project source: http://olea.org/tmp/project.zip

It’s one of the Jekyll plugins you’re using. I don’t know which one, but I commented them all out, ran bundle, then bundle exec jekyll build and it worked.

I’d suggest turning them all off, then add one back one at a time to narrow down which plugin is the problem. The issue isn’t the theme.

1 Like

You are absolutelly right: it’s jekyll-auto-image the problematic plugin.

Thanks a lot!