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 trial

JavaScript JavaScript Basics Hello, JavaScript! JavaScript Everywhere

when i preview my workspace there is some text {index of / } how do i get the blue screen like in the video?

i am not able to get the popup when i run the commands as-well.

2 Answers

Cameron Childres
Cameron Childres
11,820 Points

Hi Cheriden,

I've seen this happen when index.html is renamed, moved, or deleted.

If it's been renamed:

  • Either click the new name of the file on the "Index of" page to view it, or change the name back to index.html in your workspace by right clicking the file and selecting rename then reload the preview.

If it's been moved:

  • Ensure index.html is not nested under any folders. If it's made its way in to the css or js folder you can click and drag to move it out. Once index.html is back in the root directory reload the preview.

If it's been deleted:

  • You can either recreate index.html by going to File > New File and recreating the contents manually, or you can delete your workspace and start over with a clean slate (much easier). To delete your workspace click "Workspaces" from the main Team Treehouse navigation bar. Find this workspace in the list and click the trash can icon to the right. When you launch the workspace again from the lesson's page it will be reset to starting conditions. Any changes will be lost, all files will be brand new.

If you're having trouble renaming, moving, or recreating the file then deleting the workspace is definitely the way to go. In case the issue persists after trying these options then it would be helpful if you could post a snapshot of your workspace so we could have a look. To take a snapshot click the camera icon in the top right of the workspace and then click "take snapshot". Click the link it generates, copy it from the address bar, and share it here.

I hope this helps! Let me know if you run in to trouble.

thank you for the tip. the file was moved it's OK now