Topic: wrong number of arguments (in variables)

passandu priority asked 2 years ago


Hi,

after updating from 3.11 to 4.2.0 i got the following error:

"wrong number of arguments (1 for 3) for `rgb'" for the line:

"$box-shadow-1: 0 0px 2px 0 rgb(0 0 0 / 7%), 0 1px 1px 0 rgb(0 0 0 / 4%) !default;"

in free/_variables.scss

I use MDB 4.20 in Ruby on Rails. In version 3.11 rgba was used and it run fine.

Best regards


passandu priority commented 2 years ago

ok, only "$box-shadow-1 - 6" and "$box-shadow-1-strong ... $box-shadow-6-strong" made problems. Enything else works fine.


Grzegorz Bujański staff answered 2 years ago


It looks like you're right. From what I read on the internet, sass-rails has not been developed since 2019. You can find more about it here: https://sass-lang.com/ruby-sass. LibSass is deprecated. This prompted us to migrate to Dart Sass. Additionally, Bootstrap in version 5 was migrated from node-sass to Dart Sass. Therefore we support a Dart Sass compatible syntax. We cannot guarantee compatibility with deprecated libraries


passandu priority commented 2 years ago

Thanks four your help. Unfortunately i use freebsd so i cant use dart-sass for rails as far as i know. So i have to manually edit new mdb releases and hope for the best :)


Grzegorz Bujański staff answered 2 years ago


I understand you are importing SCSS files, not CSS? What kind of bundler do you use? Webpack? What libraries do you use to compile scss? node-sass or dart-sass? We are currently using webpack and dart-sass and have no such problems


passandu priority commented 2 years ago

Hi, i import scss files and use bundler. I use the asset-pipeline with sprockets-rails and sass-rails to compile scss files. I use an old Version of Rails (5.0.0) and therefore some older gems (sass-rails 5.0.7) , that could possibly cause the error.



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: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 4.2.0
  • Device: Desktop
  • Browser: Chrome
  • OS: Ubuntu
  • Provided sample code: No
  • Provided link: No