rails / sass-rails

Ruby on Rails stylesheet engine for Sass
MIT License
859 stars 333 forks source link

Rails 5 : Asset precompile failed when deploying to Heroku #416

Closed royalwood closed 5 years ago

royalwood commented 6 years ago
remote:        Sass::SyntaxError: $alpha: (0 0.9) is not a number for `rgba'
remote:        (sass):4982
remote:        /tmp/build_9b15d59eabe8f4b2edda98ccc4e53761/app/assets/config/manifest.js:3
remote:        (sass):4982

This is error when I get deploying to Heroku.

adiakritos commented 6 years ago

I have the same problem. I have to do rails assets:precompile before each deploy. This is making my commit history look totally screwed up but it's the only way I can figure out in the short term to deploy changes to my public assets. But I believe this is an issue with Heroku and not with this gem. Thus it's probably better to ask about this on their issue trackers.

royalwood commented 6 years ago

@adiakritos This issue doesn't fixed yet. So I updated CSS to avoid this issue.

not filter: alpha (0, 0.9)
correct: filter: alpha(Opacity=90);

Hope this tip will help you.