hello guys ,tried looking for thar file on the sol...
# support
j
hello guys ,tried looking for thar file on the solidus github containg that css code, kindly help. Getting this error while deploying. Thanks in advance.
Copy code
rake stdout: Nothing written
rake stderr: autoprefixer: /home/deploy/BizDigital/releases/20220922163654/vendor/assets/stylesheets/spree/backend/all.css:1625:368: Replace color-adjust to print-color-adjust. The color-adjust shorthand is currently deprecated.
rake aborted!
SassC::SyntaxError: Error: Function rgb is missing argument $green.
        on line 14722 of stdin
>>   box-shadow: 0 15px 40px -5px rgb(0 0 0 / 26%);
thanks in advance
w
Hey @Jay. It doesn’t look to be part of Solidus or any of its extensions. Are you sure it’s not part of your code or any other gem dependency?
j
Hello, I confirmed its not part of solidusl, though it looks some error you'd get from bootstrap or nodejs. However the error only seems to point to the backend and not the front-end. I have not edited any backend code. Also, it seems to work just fine on local machine, error only comes only during deployment stage.
@waiting_for_dev @Edwin Cruz
Copy code
01 $HOME/.rbenv/bin/rbenv exec bundle exec rake assets:precompile
      01 autoprefixer: /home/deploy/BizDigital/releases/20220923064132/vendor/assets/stylesheets/spree/backend/all.css:1625:368: Replace color-adjust to print-color-adjust. The color-adjust shorthand is currently deprecated.
      01 rake aborted!
      01 SassC::SyntaxError: Error: Function rgb is missing argument $green.
      01         on line 14722 of stdin
      01 >>   box-shadow: 0 15px 40px -5px rgb(0 0 0 / 26%);
      01
      01    -------------------------------^
      01 stdin:14722
tried everything, nothing is coming
solidus_backend depends on sassc-rails, which depends on, which depends on LibSass. However, it’s been deprecated in favor of DartSass. Not a lot of progress has been made about it, though https://github.com/sass/sassc-rails/issues/151
You should try to find that line and replace it with the old syntax for the
rgb
function
rgb($red, $green, $blue, $opacity)
LibSass won’t support the new syntax
it makes sense you only find the issue on production, as there’s where assets are compiled
j
Thanks @waiting_for_dev i changed
Copy code
rgb(0 0 0 / 26%);
 to 
rgba(0,0,0,0.26);
and that fixed it. Thanks alot
👍 1