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 trialMark Bojesen
12,873 PointsCan't work out what I am missing in "Sass introspection function"
Question goes: Use a Sass introspection function to import the URL value of the $font-url variable, if it exists in the current scope.
I keep getting this error: Bummer! There's something wrong with your Sass stylesheet. Please review your code and try again. Sass Error: Undefined variable: "$font-url".
Bummer! There's something wrong with your Sass stylesheet. Please review your code and try again. Sass Error: Undefined variable: "$font-url".
@if variable-exits(font-url) {
@import url($font-url);
}
1 Answer
Unsubscribed User
8,900 PointsYou are very close! You are just missing an "s" in your first line. It should be "exists" and you currently have "exits"
Hope this helps!
Mark Bojesen
12,873 PointsMark Bojesen
12,873 PointsThanks Matt,
All this time looking at different code/answers and it turns out I can't even spell 'exists'
Cheers!