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 trialJeffry Jimenez
5,693 PointsWhy is Sass saying "Undefined Mixin"?
I'm writing this mixin and the command says " Undefined mixin skewed' "when I use the mixin like this: @include skewed;
@mixin skewed {
content: '';
display: block;
width: 100%;
height: 50px;
position: absolute;
transform: skewY(-2deg);
}
3 Answers
Guil Hernandez
Treehouse TeacherHey jeffry jimenez,
You'll see the error happen in the video at the 3:15 mark. :)
Jonathan Grieve
Treehouse Moderator 91,253 PointsHi there,
I wonder if it's as simple as adding the @include directive after the mixin declaration. If you put the @include above the Mixin Sass won't recognise it as it hasn't yet been defined in the code.
Good luck! :-)
Jeffry Jimenez
5,693 PointsYou were right sir. I just put it at the top and it worked. Interesting because on the video that did not affect it. Thank you for helping
nfs
35,526 PointsNever mind, SASS says that quite a lot...
Jeffry Jimenez
5,693 PointsJeffry Jimenez
5,693 PointsYeah I realize later, I was pausing the video when it didn't run lol. Thank you and great content