I had the same problem before realising i was just being dumb and wrote app.render for the webpage instead of res.render. This would be easily understandable when following a tutorial of memory.