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 Middleware in Context

Why doesn't he get the "doubled is not specified" error when first loading the page?

I always use EJS instead of Pug, and when I put something like <%= message %> in my template, I have to set that message to null every time there's a get request without a message. Else I will get an error saying "message is not specified" or "couldn't find message" or something of that kind. Is this a view engine-related thing?