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 Express Basics (2015) Doing more with Express Using Logic in Jade Templates

josefina terrera
josefina terrera
16,506 Points

changes to the repo

I went through the tutorial but now I'm trying to make some small content changes in the nav:(change the title of 'about' to something else, and now the app is down. How does one go about making small content changes to this app?

Here is all I did.I removed 'ut' from About and now the app is down:

a.page-scroll(href='#about') Abo

Thoughts?

gonzaloe
gonzaloe
17,230 Points

When I checked out logicInJadeTemps from the repo the app crashed for me as well. I noticed that /src/templates/blog.jade was missing. I added blog.jade from listsInJadeTemps and the app worked again. Not sure if this is relevant to your issue.

2 Answers

If you're using nodemon, check that it didn't crash for some reason. Mine was crashing a lot when using node-inspector and nodemon --debug-brk.

Bobby Verlaan
Bobby Verlaan
29,461 Points

Had the same problem, so checked out the repository of this project on github. Like Gonzalo Eyzaguirre said the blog.jade file is missing. Going to https://github.com/hdngr/treehouse-express-basics/blob/listsInJadeTemps/src/templates/blog.jade and paste that code into a new file /src/tempaltes/blog.jade fixed my problem. Thnks Gonzalo!