You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
trying to get Kiwi and Express setup. I followed the "out of the box" setup as shown but I am getting an error. I am hoping you can help me out.
Here is my main file:
/*
Create the server object /
var Server = Express.createServer();
//Server.set("views", __dirname + '/' + Config.pathToViews);
Server.set("view engine", "kiwi");
/*
Server.listen(Config.server.port); // Start the party
Here is the content of my views directory:
[swright@swright-dev control_panel]$ ll views/
total 4
-rwxr--r-- 1 swright swright 16 Jul 30 12:53 index
[swright@swright-dev control_panel]$
Here is the error output:
Error: Failed to lookup view "index"
at Function.render (/home/swright/code/noschema/control_panel/node_modules/express/lib/application.js:493:17)
at ServerResponse.render (/home/swright/code/noschema/control_panel/node_modules/express/lib/response.js:676:7)
at /home/swright/code/noschema/control_panel/app.js:24:9
at callbacks (/home/swright/code/noschema/control_panel/node_modules/express/lib/router/index.js:165:11)
at param (/home/swright/code/noschema/control_panel/node_modules/express/lib/router/index.js:139:11)
at pass (/home/swright/code/noschema/control_panel/node_modules/express/lib/router/index.js:146:5)
at Router._dispatch (/home/swright/code/noschema/control_panel/node_modules/express/lib/router/index.js:173:4)
at Object.router as handle
at next (/home/swright/code/noschema/control_panel/node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.expressInit [as handle] (/home/swright/code/noschema/control_panel/node_modules/express/lib/middleware.js:31
The text was updated successfully, but these errors were encountered:
Hello,
trying to get Kiwi and Express setup. I followed the "out of the box" setup as shown but I am getting an error. I am hoping you can help me out.
Here is my main file:
/*
/
var Server = Express.createServer();
//Server.set("views", __dirname + '/' + Config.pathToViews);
Server.set("view engine", "kiwi");
/*
Server.get('/', function(req, res){
res.render('index', {});
});
Server.listen(Config.server.port); // Start the party
Here is the content of my views directory:
[swright@swright-dev control_panel]$ ll views/
total 4
-rwxr--r-- 1 swright swright 16 Jul 30 12:53 index
[swright@swright-dev control_panel]$
Here is the error output:
Error: Failed to lookup view "index"
at Function.render (/home/swright/code/noschema/control_panel/node_modules/express/lib/application.js:493:17)
at ServerResponse.render (/home/swright/code/noschema/control_panel/node_modules/express/lib/response.js:676:7)
at /home/swright/code/noschema/control_panel/app.js:24:9
at callbacks (/home/swright/code/noschema/control_panel/node_modules/express/lib/router/index.js:165:11)
at param (/home/swright/code/noschema/control_panel/node_modules/express/lib/router/index.js:139:11)
at pass (/home/swright/code/noschema/control_panel/node_modules/express/lib/router/index.js:146:5)
at Router._dispatch (/home/swright/code/noschema/control_panel/node_modules/express/lib/router/index.js:173:4)
at Object.router as handle
at next (/home/swright/code/noschema/control_panel/node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.expressInit [as handle] (/home/swright/code/noschema/control_panel/node_modules/express/lib/middleware.js:31
The text was updated successfully, but these errors were encountered: