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 trial

CSS Modular CSS with Sass Getting Modular with Mixins and Functions Sass Function Challenge

Mark Bojesen
Mark Bojesen
12,873 Points

Can'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".
style.scss
@if variable-exits(font-url) {
  @import url($font-url);
}

1 Answer

You 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
Mark Bojesen
12,873 Points

Thanks Matt,

All this time looking at different code/answers and it turns out I can't even spell 'exists'

Cheers!