Topic: Sass compilation with MDB-pro with Ruby On rails

moussa.ismo1 pro asked 6 years ago


Hello, I have a bug with sass compilation in Ruby on rails environnement. below is the bug report. how can I fix it ? Thanks. remote: Sass::SyntaxError: ("lighten-5": #e3f2fd, "lighten-4": #bbdefb, "lighten-3": #90caf9, "lighten-2": #64b5f6, "lighten-1": #42a5f5, "base": #2196f3, "darken-1": #1e88e5, "darken-2": #1976d2, "darken-3": #1565c0, "darken-4": #0d47a1, "accent-1": #82b1ff, "accent-2": #448aff, "accent-3": #2979ff, "accent-4": #2962ff) isn't a valid CSS value. remote: (sass):14539 remote: /tmp/build_c2412b9d0be8a69cc315c2a13266056b/vendor/bundle/ruby/2.4.0/gems/sass-3.5.5/lib/sass/script/value/map.rb:52:in `to_s' remote: /tmp/build_c2412b9d0be8a69cc315c2a13266056b/vendor/bundle/ruby/2.4.0/gems/sass-3.5.5/lib/sass/script/tree/funcall.rb:175:in `join' remote: /tmp/build_c2412b9d0be8a69cc315c2a13266056b/vendor/bundle/ruby/2.4.0/gems/sass-3.5.5/lib/sass/script/tree/funcall.rb:175:in `to_value' remote: /tmp/build_c2412b9d0be8a69cc315c2a13266056b/vendor/bundle/ruby/2.4.0/gems/sass-3.5.5/lib/sass/script/tree/funcall.rb:168:in `to_literal' remote: /tmp/build_c2412b9d0be8a69cc315c2a13266056b/vendor/bundle/ruby/2.4.0/gems/sass-3.5.5/lib/sass/script/tree/funcall.rb:159:in `_perform' remote: /tmp/build_c2412b9d0be8a69cc315c2a13266056b/vendor/bundle/ruby/2.4.0/gems/sass-3.5.5/lib/sass/script/tree/node.rb:50:in `perform' remote: /tmp/build_c2412b9d0be8a69cc315c2a13266056b/vendor/bundle/ruby/2.4.0/gems/sass-3.5.5/lib/sass/tree/visitors/perform.rb:402:in `visit_prop' remote: /tmp/build_c2412b9d0be8a69cc315c2a13266056b/vendor/bundle/ruby/2.4.0/gems/sass-3.5.5/lib/sass/tree/visitors/base.rb:36:in `visit' remote: /tmp/build_c2412b9d0be8a69cc315c2a13266056b/vendor/bundle/ruby/2.4.0/gems/sass-3.5.5/lib/sass/tree/visitors/perform.rb:162:in `block in visit' remote: /tmp/build_c2412b9d0be8a69cc315c2a13266056b/vendor/bundle/ruby/2.4.0/gems/sass-3.5.5/lib/sass/stack.rb:79:in `block in with_base'

rockavaler pro answered 6 years ago


I have the same problem and I do not think is related to Ruby on Rails:

Please see  this: https://mdbootstrap.com/support/4-5-0-typo-in-sass-function-wreaking-havoc/

 


Jakub Strebeyko staff commented 6 years ago

Hi there rockavaler, As it has been already noted in the referenced thread, the bug report has been issued about the typo you suggest is causing compilation errors in RoR. The fix is scheduled to be included in the next release. With Best Regards, Kuba

Jakub Strebeyko staff answered 6 years ago


Hi there Moussa, Thanks for contributing to the support board! For the time being MDB does not support RoR. It is possible, some of people here are using it, but they had to figure it all out for themselves. You surely will, too. With Best Regards, Kuba

moussa.ismo1 pro commented 6 years ago

Until the last version it works fine. but since this 4.5.0 I thinks a bug was introduced. Thanks to your reply! Ismael

Jakub Strebeyko staff commented 6 years ago

Thanks for letting us know! There were many improvements introduced to our Sass syntax in MDB version 4.5, the compilation issue probably stems out of the fact. The bug report has been filed. Best, Kuba

rockavaler pro commented 6 years ago

https://mdbootstrap.com/support/4-5-0-typo-in-sass-function-wreaking-havoc/


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags