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

Previewing workspace on Chrome

When I press preview workspace, it shows this ancient looking site with "Index of/" , "name", "last modified", "size" , "description" and folders for js and css. The page goes blank if you click them. The preview used to work properly but now it's been doing this for two months.

4 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! I just forked your workspace and just took a look, and sure enough, the root directory is missing the index.html file. Somehow, that file got moved inside your "js" folder. I moved the file to the correct place, and now the preview works. The index.html should be on the same "level" as the "css" and "js" folders and not inside one of those :smiley:

Here is the workspace snapshot

Hope this helps! :sparkles:

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there, Ilkka Nenonen! The implication here is that the root directory is either missing index.html or index.html is misnamed. On the upper right-hand side of your workspace, you'll find an icon that looks a bit like a camera. Clicking that will allow you to create a "snapshot" that you can link here to us so that we can copy your workspace and take a look around.

Looking forward to hearing back! :sparkles:

https://w.trhou.se/59edv6adgx

Hey! Here above the link for the workspace.

Also the text below is copy pasted from the Chrome tab it goes to when I preview the workspace.

Index of / [ICO] Name Last modified Size Description [DIR] css/ 2019-12-09 15:01 -
[DIR] js/ 2020-09-14 12:53 -
Apache/2.4.18 (Ubuntu) Server at port-80-al0rhbnplb.treehouse-app.com Port 80

Got it! Feel so stupid, but the small stuff gets you in the beginning :D thanks a bunch!