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 trialRachel Potgieter
11,814 PointsWhy do I get this error in my console?
I have followed step by step what Guil has done in the video but when I add the @extend %centered; to the primary-content, the following error appears in the console:
error scss/layout/_containers.scss (Line 11: ".primary-content" failed to @extend "%cen
tered".
The selector "%centered" was not found.
Use "@extend %centered !optional" if the extend should be able to fail.
Please help. Thanks!
1 Answer
Nicholas Olsen
Front End Web Development Techdegree Student 19,342 PointsThat error suggests that sass can not see your %centered placeholder. Check to make sure it is named correctly, there are no typos and that any files you need to include have been included.
Rachel Potgieter
11,814 PointsRachel Potgieter
11,814 PointsSorry! My bad. He gives an explanation further on in the video.