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

JavaScript JavaScript Basics (Retired) Introducing JavaScript The JavaScript Console

script.js file doesn't appear in Chrome Dev Tools Sources tab [Fixed]

Hi, I'm using Google Chrome for this tutorial and opened up Developer Tools (Dev Tools) to review my javascript errors.

I discovered you can edit your javascript code in Dev Tools by looking at the file using the "Sources" tab along the top of the Dev Tools window. The Source tab will highlight your errors in red (like in Microsoft Word) and allows you to make changes to the code directly (but you'll still need to update your file in Workspace).

So, I went to the "Sources" tab, which typically displays all the Workspace files in a file tree, but discovered my "scripts.js" file wasn't in the file tree. To fix this, I left the Dev Tools window open and refreshed the tutorial page. After refreshing, the script.js file appeared in the file tree and I was able to open it and look at the javascript errors.

Just wanted to share in case someone else ran into the same problem :)