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 trialWendell Pulsipher
10,183 Pointssourcemap does not work as indicated
Do I need to install another gem for this to work? I'll I'm getting is an error that says:
"OptionParser::InvalidOption: invalid option: --sourcemap Use --trace for backtrace."
not entirely sure what that means, but some clarification would be greatly appreciated
4 Answers
Wendell Pulsipher
10,183 PointsI can't seem to find out how to upgrade to Sass 3.3 via command line. googled it but couldn't find the command to do it
Edit: I'll mark this as the best answer, but only to indicate that the answers below are the best answers. they have to button with which to select them as the best answer
Dale Sande
Treehouse Guest TeacherHey everyone - I just wanted to throw an update in here as things have changed since I produced the demo.
One, you no longer need to pass in --sourcemaps
into the watch command as this is default functionality. Also, the process for setting the source map file has changed in Chrome as well. Best answer to this can be found here:
http://www.sitepoint.com/using-source-maps-debug-sass-chrome/
Chris Shaw
26,676 PointsHi Wendell,
Which version of Sass do you have and what is the full command you're running? To check your version run the below.
sass -v
Wendell Pulsipher
10,183 Pointsit says version
3.2.10 <Media Mark>
Chris Shaw
26,676 PointsSource maps wern't introduced until Sass 3.3 so you'll need to upgrade
Chris Shaw
26,676 PointsChris Shaw
26,676 PointsSimply run the following.
gem install sass -v 3.4.1
Currently 3.4.2 is broken if you use
--watch
whereas 3.4.1 isn't.Typically you upgrade using the following command.
gem update sass
EDIT: I just saw Sass 3.4.3 is out so simply running the update command above will suffice.