I get an error when Heroku is trying to compile assets of my Rails app:
remote: -----> Preparing app for Rails asset pipeline
remote: Running: rake assets:precompile
remote: rake aborted!
remote: Sass::SyntaxError: Undefined variable: "$btn-default-border".
remote: (in /tmp/build_8402012299c8c367a1dc15dd7f5cd85f/app/assets/stylesheets/auctions.css.scss:42)
remote: /tmp/build_8402012299c8c367a1dc15dd7f5cd85f/app/assets/stylesheets/auctions.css.scss:42
When I run rake assets:precompile
locally it works.
Here my application.css.scss
/*
*
*= require bootstrap-datepicker3
*/
@import "variables";
@import "bootstrap-sprockets";
@import "bootstrap";
@import "auctions";
auctions.css.scss
.form-control-feedback {
pointer-events: all;
&:hover {
cursor:pointer;
border: 1px solid $btn-default-border;
background: $gray-lighter;
border-radius: 5px;
}
}
Why is it working locally but not on Heroku? Is Heroku trying to compile auctions.css.scss
without other dependencies?