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 trialBrigette Eckert
16,957 PointsConsole showing CSS file origin not SASS file origin.
The dev tools on chrome on my pc are showing the css file location not the sass file location even with the map being in my css folder?
4 Answers
Samuel Fortunato
20,229 PointsThis happened to me. Assuming you did everything else right, and that you're using Chrome, just start up http-server
, go to Chrome Dev Tools, and right click the refresh button at the top. Select "Empty Cache and Hard Reload". You can also just hit Ctrl + Shift + R, or Cmd + Shift + R on Mac. You have to have Dev Tools open to do this.
If you are using another browser. you'll have to figure out how to empty the cache and reload. A quick googling will probably help.
Kirill Pahl
13,924 PointsIf you are using Chrome on windows, it just does not catch mappings sometimes. Try Firefox, at least it helped me =)
Matthew Barrus
16,731 Pointsif this happens, check the bottom of the .css file for a line like:
/*# sourceMappingURL=application.css.map */
You probably compiled the SASS before adding the source mapping. When Huston showed the sass references in dev tools, he still had a source map referenced in the css file
dlip
8,499 PointsShould that line be there or not? I followed the steps of the video: first complied the sass, then created the map. But still the console is showing the css file and not the sass file. ??
Steven Parker
231,248 PointsSass only exists on the server. It gets converted to CSS before going to your browser.
Since dev tools are in the browser, they won't see any sources that were processed or compiled on the server.
Brigette Eckert
16,957 PointsIt was specifically an issue for one video using the scss map that huston gave us with the project. Later in another video when we made another map it worked fine.
Finley Williamson
11,375 PointsFinley Williamson
11,375 PointsThis worked for me thanks!