title: Get TypeError: path must be absolute or specify root to res.sendFile in Expressjs
body: <p>Here is my code:-</p>
  
  <pre><code>app.get('/',function(req,res){
  res.sendFile('index.html');
  });
  </code></pre>
  
  <p>Get the following error:- </p>
  
  <pre><code>TypeError: path must be absolute or specify root to res.sendFile
  at ServerResponse.sendFile
  </code></pre>