You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got an express app that loads other express apps as middleware. They all share views in the same directory but the various express apps are in different directories.
Correct me if I'm wrong, but it looks like the views are being loaded by a relative path, instead of where I set them in the master app: app.set("views", __dirname + "/views"); Is that what's happening?
Edit: it looks like it's trying to get a view_dir but it seems to be undefined. var view_dir = options.settings.views;
The text was updated successfully, but these errors were encountered:
I've got an express app that loads other express apps as middleware. They all share views in the same directory but the various express apps are in different directories.
Correct me if I'm wrong, but it looks like the views are being loaded by a relative path, instead of where I set them in the master app:
app.set("views", __dirname + "/views");
Is that what's happening?Edit: it looks like it's trying to get a view_dir but it seems to be undefined.
var view_dir = options.settings.views;
The text was updated successfully, but these errors were encountered: