SyntaxFix
Write A Post
Hire A Developer
Questions
In my case it was a stupid mistake- it was a typo in the middleware. I wrote app.set('view engine', 'ejs.'); the dot caused the error. I installed ejs and express locally
app.set('view engine', 'ejs.');