TrestleAdmin / trestle

A modern, responsive admin framework for Ruby on Rails
https://trestle.io
GNU Lesser General Public License v3.0
1.96k stars 177 forks source link

ActionView::Template::Error (Invalid CSS after "...lor}: #{$value}": expected "{", was ";"): #287

Closed xvpe closed 4 years ago

xvpe commented 4 years ago

Getting CSS syntax error for a clean install. I am able to make it go away by removing double hyphens within _trestle/frontend/theme/trestle/theme/bootstrap/_color-vars.scss_

Does anybody know any workaround?

spohlenz commented 4 years ago

Could you post what Sass-related and minifier-related gems and versions you have installed? I'm guessing it's a minifier getting hung up on the syntax.

xvpe commented 4 years ago

Thank you for the quick response! @spohlenz

As far as I can tell it's this:

gem 'sass-rails', '~> 5.0' gem 'uglifier', '>= 1.3.0' gem 'coffee-rails'

I'm not sure if it matter but I get similar issue when trying to use a converter with that chunk of code:

Screen Shot 2020-02-24 at 9 09 50 PM
spohlenz commented 4 years ago

It looks like the JSONformatter converter you are using doesn't support CSS variables.

Could you please post the full output of bundle list and I'll try to match my environment to yours.

xvpe commented 4 years ago

Thank you! Please see below:

Gems included by the bundle:

spohlenz commented 4 years ago

It looks like your version of sass (3.5.1) is causing the issue. I was able to reproduce the same error when pinning to that version.

Assuming you don't have it pinned in your Gemfile, and no other gems are causing a version conflict, then running bundle update sass should update it to 3.7.4.

If it still doesn't work after updating the sass gem, then also try rake tmp:cache:clear and restarting the Rails server.

xvpe commented 4 years ago

Thank you @spohlenz ! Updating sass helps.