[Fixed] Trying to work with ejs to build to do list keep getting TypeError

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");

Leave a Reply

(*) Required, Your email will not be published