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 Sass Basics (retired) Variables, Mixins, and Extending Selectors The Power of Mixins

CSS error not going away.

When we created the error, for radius variable, I found myself in a situation where the error in the CSS never cleared itself. It still shows up in the CSS file, which looks nothing like the scss file. Why is this? Is there another way to clear it without just closing and reopening the file?

1 Answer

roxannecarlson
roxannecarlson
8,131 Points

Have you re-saved your sass file? If so, it should overwrite the CSS file. If it hasn't you could delete the CSS file and let sass recreate it for you. (You could also just go into the CSS file and remove the portion that is in correct and re-run your sass file to re-create the code.)

Well, the main problem is that I did not know that I had to watch the exact folder where I was saving my files, not watch the desktop where my folder was located. That wasn't clear from the video. Because I didn't know that, I wasn't seeing my css file update anyway, even when there weren't errors.

To fix this problem, I just deleted the CSS file and when I saved the scss file again the css file was regenerated.