NodeJS + Express + Handlebars - failed to locate view "index.html" NodeJS + Express + Handlebars - failed to locate view "index.html" express express

NodeJS + Express + Handlebars - failed to locate view "index.html"


By default, it will look in a folder called views from the directory the script is. If you use a different dir you must specify it.

app.set('views', __dirname + '/views');

Express should also tell you more information about where it's trying to find the view, that should help you know exactly where it's looking.