Error on running example
kenetik opened this issue · 0 comments
/ghub-tests/mongoose-auth/example# node server.js
ReferenceError: /ghub-tests/mongoose-auth/example/views/home.jade:1
1| - if (!everyauth.loggedIn)
2| h2 Not Authenticated
3| #register
4| a(href='/register') Register
everyauth is not defined
at eval (eval at (/ghub-tests/mongoose-auth/node_modules/jade/lib/jade.js:171:8), :8:6)
at /ghub-tests/mongoose-auth/node_modules/jade/lib/jade.js:172:35
at Object.exports.render (/ghub-tests/mongoose-auth/node_modules/jade/lib/jade.js:206:14)
at View.exports.renderFile as engine
at View.render (/ghub-tests/mongoose-auth/node_modules/express/lib/view.js:75:8)
at Function.app.render (/ghub-tests/mongoose-auth/node_modules/express/lib/application.js:506:10)
at ServerResponse.res.render (/ghub-tests/mongoose-auth/node_modules/express/lib/response.js:756:7)
at /ghub-tests/mongoose-auth/example/server.js:111:7
at callbacks (/ghub-tests/mongoose-auth/node_modules/express/lib/router/index.js:161:37)
at param (/ghub-tests/mongoose-auth/node_modules/express/lib/router/index.js:135:11)
please help, what am I doing wrong?