title: TypeError: View is not a constructor EJS
body: <p><strong>Hi</strong></p>
  
  <p>I'm getting this error when I try to render an EJS page... I guess the error is on my side, so can you please help me debug?</p>
  
  <p><strong>ERROR</strong></p>
  
  <pre><code>TypeError: View is not a constructor
  at Function.render (/home/bot_king/nodelearn/project/node_modules/express/lib/application.js:570:12)
  at ServerResponse.render (/home/bot_king/nodelearn/project/node_modules/express/lib/response.js:1008:7)
  at /home/bot_king/nodelearn/project/app.js:16:9
  at Layer.handle [as handle_request] (/home/bot_king/nodelearn/project/node_modules/express/lib/router/layer.js:95:5)
  at next (/home/bot_king/nodelearn/project/node_modules/express/lib/router/route.js:137:13)
  at Route.dispatch (/home/bot_king/nodelearn/project/node_modules/express/lib/router/route.js:112:3)
  at Layer.handle [as handle_request] (/home/bot_king/nodelearn/project/node_modules/express/lib/router/layer.js:95:5)
  at /home/bot_king/nodelearn/project/node_modules/express/lib/router/index.js:281:22
  at Function.process_params (/home/bot_king/nodelearn/project/node_modules/express/lib/router/index.js:335:12)
  at next (/home/bot_king/nodelearn/project/node_modules/express/lib/router/index.js:275:10)
  </code></pre>
  
  <p><strong>CODE</strong></p>
  
  <pre><code>var express = require("express");
  var app = express();
  var port = 8080;
  var ejs = require('ejs');
  app.use(express.static("src/view"));
  
  app.set("view", "./src/view");
  app.set("view engine", "ejs");
  
  app.use(express.static("public"));
  app.listen(port, function(err){
  console.log("The server is running on port " + port);
  });
  
  app.get("/", function(req, res){
  res.render("index", { list: ["first", "2nd", "3rd"]})
  });
  </code></pre>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;ul&gt;
  &lt;% for(var i = 0; i&lt;list.length; i++){%&gt;
      &lt;li&gt; &lt;h4&gt; &lt;%=list[i] %&gt; &lt;/h4&gt; &lt;/li&gt;
  &lt;%}%&gt;
  &lt;/ul&gt;
  </code></pre>