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
When I try to install sydjs
I get the following error when I run node keystone.js :
undefined is not a function
at exports.flashMessages (/var/www/vhosts/ichesspro.com/nodejs.ichesspro.com/opt/node-services/routes/middleware.js:98:26)
at /var/www/vhosts/ichesspro.com/nodejs.ichesspro.com/opt/node-services/node_modules/keystone/lib/view.js:354:4
at /var/www/vhosts/ichesspro.com/nodejs.ichesspro.com/opt/node-services/node_modules/keystone/node_modules/async/lib/async.js:718:13
at async.forEachOf.async.eachOf (/var/www/vhosts/ichesspro.com/nodejs.ichesspro.com/opt/node-services/node_modules/keystone/node_modules/async/lib/async.js:233:13)
at _parallel (/var/www/vhosts/ichesspro.com/nodejs.ichesspro.com/opt/node-services/node_modules/keystone/node_modules/async/lib/async.js:717:9)
at Object.async.parallel (/var/www/vhosts/ichesspro.com/nodejs.ichesspro.com/opt/node-services/node_modules/keystone/node_modules/async/lib/async.js:731:9)
at /var/www/vhosts/ichesspro.com/nodejs.ichesspro.com/opt/node-services/node_modules/keystone/lib/view.js:364:10
at /var/www/vhosts/ichesspro.com/nodejs.ichesspro.com/opt/node-services/node_modules/keystone/node_modules/async/lib/async.js:181:20
at Immediate.iterate [as _onImmediate] (/var/www/vhosts/ichesspro.com/nodejs.ichesspro.com/opt/node-services/node_modules/keystone/node_modules/async/lib/async.js:262:13)
at processImmediate [as _immediateCallback] (timers.js:358:17)
Middleware.js
**
Fetches and clears the flashMessages before a view is rendered
*/
exports.flashMessages = function(req, res, next) {
var flashMessages = {
info: req.flash('info'),
success: req.flash('success'),
warning: req.flash('warning'),
error: req.flash('error')
};
res.locals.messages = _.any(flashMessages, function(msgs) { return msgs.length }) ? flashMessages : false;
next();
};
I tried with async@1.4 and the last stable
node v0.12.4
npm 2.10.1
MongoDB 3.2.7
The text was updated successfully, but these errors were encountered:
Hi,
Keystonejs (yo generator) is working perfectly.
When I try to install sydjs
I get the following error when I run node keystone.js :
Middleware.js
I tried with async@1.4 and the last stable
node v0.12.4
npm 2.10.1
MongoDB 3.2.7
The text was updated successfully, but these errors were encountered: