Couldn't deploy Rails + Tailwind on Heroku

Viewed 560

I deploy the rails + tailwind app on Heroku but I failed with the below error.

SassC::SyntaxError: Error: Function rgb is missing argument $green.
        on line 607 of stdin
>>   color: rgb(239 68 68 / var(--tw-text-opacity));

Here's how I installed Tailwind to the app.

bin/bundle add tailwindcss-rails
bin/rails tailwindcss:install
2 Answers

You can check the comment here https://github.com/rails/tailwindcss-rails with regards to sassc-rails. It seems like there's an incompatibility with that gem. For example, you may have to remove sass-rails ¯_(ツ)_/¯

Related