New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No such file or directory #195
Comments
Try using |
I am also experiencing this issue. I use |
I ran into the same issue, and could solve it by setting the
|
How to reproduce this issue:
From this discussion it seems that the bug is due to pure default path resolving in This issue is fixed by this PR but not published yet. |
For anyone out there who doesn't have an layouts or layout folder and is having the same issue. Try this in the rendering of the page: |
Is there a way to set the set the default value of
to
|
|
|
|
Thanks Its Working... |
but what if we have layout but still showing such problem |
This solved my issue:
|
I had a silly mistake as: |
I'm running into the same issue and it involves the differences in operating systems. This is because the application works as intended on windows, but fails on linux with
Error: ENOENT: no such file or directory, open '/views/layouts/main.handlebars'
Here is my file structure.
and here is part of the index.js file
While I was making this issue, I ran into another error
Error: Failed to lookup view "index" in views directory "/views"
Which contains no reference back to express-handlebars but only mentions express in the stack.
I'm assuming this is just a simple mistake on my part but it might be worth documenting for people like me who don't quite understand the subtle differences between linux and windows.
The text was updated successfully, but these errors were encountered: