Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJake Snider
24,847 PointsImporting Bootstrap 4 Sass into a Ruby on Rails Project
I'm trying to rebuild a couple of my sites using Ruby on Rails. I'd like to import Bootstrap 4 Sass into the project so I can extend their classes and utilize their mixins. I've followed a few different tutorials but the result is still a compilation error. If I can just get the power of Bootstrap properly imported into these projects I'll be ecstatic. Any help is greatly appreciated!
p {
@extend .text-center;
font-size: 20rem;
@include hover-focus {
color: red;
}
}
Throws this error:
Error: no mixin named hover-focus
on line 7:14 of app/assets/stylesheets/pages.scss
from line 1:9 of app/assets/stylesheets/application.scss
>> @include hover-focus {
-------------^