Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript Express Basics Using Templates with Express Breaking Your Project’s Templates into Partials

Jerry Louis
Jerry Louis
Full Stack JavaScript Techdegree Student 11,293 Points

Hello! I am having an issue with my directory. https://github.com/JerryLouisDev/pugPractice

Why am I getting this error?

Error: ENOENT: no such file or directory, open '/Users/jeylouie/flashcard/views/inlcudes/footer.pug'

I have mirrored the video and for some reason, I still have an error message..

Thank you for the help!

1 Answer

Torben Korb
.a{fill-rule:evenodd;}techdegree seal-36
Torben Korb
Front End Web Development Techdegree Graduate 88,575 Points

Hi Jerry, it seems like a simple typo in your layout.pug file where you include the footer. Just correct the path from "inlcudes" (written false) to "includes".

Typical error that happens the best of us and things that are sometimes hard to spot. Happy coding!