I am experiencing an issue while precompiling the assets of my Rails projects.
Here is the versions of some of the gems I am using:
rails (4.2.0)
bootstrap-sass (3.3.3)
sass-rails (5.0.1)
The project is an AngularJS project sourcing the following gems from Rails Asset:
rails-assets-bootstrap-additions (0.2.3)
rails-assets-angular-bootstrap (0.11.2)
rails-assets-bootstrap-sass-official (3.3.3)
Following the README on the bootstrap-sass Github page, I renamed my app/assets/stylesheets/application.css
file to application.scss
and replaced its content by:
@import "bootstrap-sprockets";
@import "bootstrap";
Here is the error I get when I launch RAILS_ENV=production rake assets:precompile --trace
:
** Execute assets:precompile
rake aborted!
Sass::SyntaxError: Undefined variable: "$alert-padding".
(in /home/owner/.rvm/gems/ruby-2.1.5/gems/bootstrap-sass-3.3.3/assets/stylesheets/bootstrap/_alerts.scss:10)
I looked into ClothSword's answer to this similar post, but in my case puts config.assets.precompile.inspect
outputs (lambda)>, /(?:\/|\\|\A)application\.(css|js)$/]
, which I believe to be the default.
Would anyone have more insight on this? You can browse the source here