sassc dependency breaks compatibility with tailwindcss-rails
- What were you trying to do?
I'm trying to use tailwind-rails v2.0.2 and importmaps.
- What did you end up with (logs, or, even better, example apps are great!)?
I'm getting a SassC::SyntaxError
when I run rake assets:precompile
. Based on my debugging, it's because tailwind-rails
is incompatible with the sassc-rails
gem that administrate requires as a dependency:
Tailwind uses modern CSS features that are not recognized by the sassc-rails extension that was included by default in the Gemfile for Rails 6. In order to avoid any errors like SassC::SyntaxError, you must remove that gem from your Gemfile.
- What versions are you running?
Rails 7.0 Administrate 0.16.0