Note that there are some explanatory texts on larger screens.

plurals
  1. POwhen using jade I'm gettin Error: "Failed to lookup view"
    text
    copied!<p>I am net to coding node.js program.</p> <p>Here is my app.js file:</p> <pre><code>var express = require('express'); var app = express(); app.configure(function(){ app.set('view engine', 'jade'); }); app.get('/index/:name',function(req, res){ res.render('index', { title: req.params.name }); }); app.listen(8080); </code></pre> <p>And here is my index.jade</p> <pre><code>!!! 5 html head title= title </code></pre> <p>When i run call localhost:8080/index/example from web browser, I get error that is below:</p> <pre><code>Error: Failed to lookup view "index.jade" at Function.render (/home/yusuf/Masaüstü/node/node_modules/express/lib/application.js:489:17) at ServerResponse.render (/home/yusuf/Masaüstü/node/node_modules/express/lib/response.js:716:7) at /home/yusuf/Masaüstü/node/app.js:9:6 at callbacks (/home/yusuf/Masaüstü/node/node_modules/express/lib/router/index.js:160:37) at param (/home/yusuf/Masaüstü/node/node_modules/express/lib/router/index.js:134:11) at param (/home/yusuf/Masaüstü/node/node_modules/express/lib/router/index.js:131:11) at pass (/home/yusuf/Masaüstü/node/node_modules/express/lib/router/index.js:141:5) at Router._dispatch (/home/yusuf/Masaüstü/node/node_modules/express/lib/router/index.js:169:4) at Object.router [as handle] (/home/yusuf/Masaüstü/node/node_modules/express/lib/router/index.js:32:10) at next (/home/yusuf/Masaüstü/node/node_modules/express/node_modules/connect/lib/proto.js:190:15) </code></pre> <p>What is the problem? And how can i solve?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload