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

Jesus Mendoza
Jesus Mendoza
23,289 Points

How to use Compass or Bourbon with Sass?

I'm currently doing the Sass Basics course but I'm having a small problem, I'm running Sass on Windows and I can't follow exactly what the teacher is doing, I've tried different things but when I -- watch the screen.scss file generated when I create a Compass project I get the following error "File to import not found or unreadable: compass/reset".

Anyone out there using Sass on Windows?

Oziel Perez
Oziel Perez
61,321 Points

I'm actually developing on a Mac, so, sorry I wont be able to help you out on how to use Compass using the Windows command prompt or anything of the like. What I can suggest for you though is to try using an app as an alternative to using the command prompt or whatever it was you're using (assuming you weren't using an app already). I'm currently using Koala, it's an app that compiles CSS, LESS and some scripting languages. It's very easy to use. In it, all you have to do is check a box that says "Compass Mode" and the app automatically provides the Compass functions and mixins that it has. You will still have to generate a config.rb file for your projects but thats about the only thing you will need (if anything i just copy and paste that file across my projects since the settings normally stay the same).

For a link to the app download, go to this:

http://koala-app.com/

If you get stuck on installing it or knowing how to use it, you can send me a comment or read up some of the documentation on the website (in case if it's a more technical issue).

1 Answer

The windows console is finicky in needing the command path spelled out or a child of where you are coding from. Also remember to not have any spaces in the folder or file names. I have been told I have successfully installed the bourbon 4.2.1 gem and thor piggybacked on it. But I have yet to find the libraries/folders that the video shows.

I haven't tried the Compass yet. Hope some of this is helpful.