Issue
What is going wrong here? Screen shot attached.enter image description here
Solution
It’s app.set(), not app.use().
Replace
app.use("view engine", "ejs");
with
app.set("view engine", "ejs");
get it fixed!
What is going wrong here? Screen shot attached.enter image description here
It’s app.set(), not app.use().
Replace
app.use("view engine", "ejs");
with
app.set("view engine", "ejs");