sassc::syntax error on fresh solidus install on rails 7 #6053
Answered
by
magpieuk
warisali2
asked this question in
Troubleshooting
-
I have created a fresh rails 7.2.2.1 install followed the solidus installation instructions $ bundle add solidus
$ bin/rails generate solidus:install Application runs locally /home/user/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/tailwindcss-ruby-3.4.17-x86_64-linux/exe/x86_64-linux/tailwindcss --config /home/user/code/solidus_store/config/solidus_admin/tailwind.config.js --input /home/user/code/solidus_store/app/assets/stylesheets/solidus_admin/application.tailwind.css --output /home/user/code/solidus_store/app/assets/builds/solidus_admin/tailwind.css
Rebuilding...
Done in 3903ms.
** Execute assets:precompile
rake aborted!
SassC::SyntaxError: Error: Function rgb is missing argument $green. (SassC::SyntaxError)
on line 1377 of stdin
>> border-color: rgb(222 222 222 / var(--tw-divide-opacity, 1));
----------------^
stdin:1377
/home/user/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0/lib/sassc/engine.rb:50:in `render'
/home/user/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-rails-2.1.2/lib/sassc/rails/compressor.rb:29:in `call'
/home/user/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/sprockets-4.2.1/lib/sprockets/sass_compressor.rb:30:in `call'
/home/user/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/sprockets-4.2.1/lib/sprockets/processor_utils.rb:84:in `call_processor'
/home/user/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/sprockets-4.2.1/lib/sprockets/processor_utils.rb:66:in `block in call_processors'
... I am not using sassc-rails gem as indicated by the tailwindcss-rails gem. But sassc-rails gem is being included in solidus_backend gem. I think its causing the issues My Gemfile source "https://rubygems.org"
# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
gem "rails", "~> 7.2.2", ">= 7.2.2.1"
# The original asset pipeline for Rails [https://github.com/rails/sprockets-rails]
gem "sprockets-rails"
# Use postgresql as the database for Active Record
gem "pg", "~> 1.1"
# Use the Puma web server [https://github.com/puma/puma]
gem "puma", ">= 5.0"
# Use JavaScript with ESM import maps [https://github.com/rails/importmap-rails]
gem "importmap-rails"
# Hotwire's SPA-like page accelerator [https://turbo.hotwired.dev]
gem "turbo-rails"
# Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev]
gem "stimulus-rails"
# Build JSON APIs with ease [https://github.com/rails/jbuilder]
gem "jbuilder"
# Use Redis adapter to run Action Cable in production
# gem "redis", ">= 4.0.1"
# Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis]
# gem "kredis"
# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword]
# gem "bcrypt", "~> 3.1.7"
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem "tzinfo-data", platforms: %i[ windows jruby ]
# Reduces boot times through caching; required in config/boot.rb
gem "bootsnap", require: false
# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images]
# gem "image_processing", "~> 1.2"
group :development, :test do
# See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
gem "debug", platforms: %i[ mri windows ], require: "debug/prelude"
# Static analysis for security vulnerabilities [https://brakemanscanner.org/]
gem "brakeman", require: false
# Omakase Ruby styling [https://github.com/rails/rubocop-rails-omakase/]
gem "rubocop-rails-omakase", require: false
gem 'dotenv-rails'
end
group :development do
# Use console on exceptions pages [https://github.com/rails/web-console]
gem "web-console"
gem "capistrano", "~> 3.10", require: false
gem "capistrano-rails", "~> 1.6", require: false
gem 'capistrano-rbenv'
gem 'capistrano-passenger'
end
group :test do
# Use system testing [https://guides.rubyonrails.org/testing.html#system-testing]
gem "capybara"
gem "selenium-webdriver"
end
gem "solidus", "~> 4.4"
gem "solidus_auth_devise", "~> 2.5"
gem "responders"
gem "canonical-rails"
gem "solidus_support"
gem "truncate_html"
gem "view_component", "~> 3.0"
gem "tailwindcss-rails"
group :test do
gem "capybara-screenshot", "~> 1.0"
gem "database_cleaner", "~> 2.0"
end
group :development, :test do
gem "rspec-rails"
gem "rails-controller-testing", "~> 1.0.5"
gem "rspec-activemodel-mocks", "~> 1.1.0"
gem "factory_bot", ">= 4.8"
gem "factory_bot_rails"
gem "ffaker", "~> 2.13"
gem "rubocop", "~> 1.0"
gem "rubocop-performance", "~> 1.5"
gem "rubocop-rails", "~> 2.3"
gem "rubocop-rspec", "~> 2.0"
end
gem "solidus_admin", ">= 0.2"
group :production do
gem 'aws-sdk-s3', '~> 1.122', require: false
end |
Beta Was this translation helpful? Give feedback.
Answered by
magpieuk
Dec 30, 2024
Replies: 1 comment
-
Try adding "config.assets.css_compressor = nil" to your environments/production.rb |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jarednorman
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try adding "config.assets.css_compressor = nil" to your environments/production.rb