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!

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) Getting Started with Sass Installing and Using Sass

Sandra Vu
Sandra Vu
3,525 Points

watch. doesn't work but watch specified file works. Why?

Error when using --watch.

adminsMacBook7:sass admin$ sass --watch. OptionParser::InvalidOption: invalid option: --watch. Use --trace for backtrace.

But this works : adminsMacBook7:sass admin$ sass --watch test.scss:test.css

Sass is watching for changes. Press Ctrl-C to stop. write test.css write test.css.map

Could anyone explain why?

2 Answers

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,250 Points


--watch .

in your terminal.

With watch, it might be confusing that with an invalid command. So keep a space between the period and the watch command :-)

Sandra Vu
Sandra Vu
3,525 Points

ahh that was easy with your help! Thanks, Jonathan :)