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 trialSandra Vu
3,525 Pointswatch. 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
Treehouse Moderator 91,253 PointsTry
--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
3,525 Pointsahh that was easy with your help! Thanks, Jonathan :)