Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mean.io application is throwing error with forever

I am working on a mean.io application. I am trying to run this application on Ubuntu shell with forever module of node but it is throwing an error

"util.js:756
throw new TypeError('The super constructor to `inherits` must not ' +
^: The super constructor to `inherits` must not be null or undefined.
at Object.exports.inherits (util.js:756:11)
at Object.<anonymous> (/usr/lib/node_modules/forever/node_modules/forever-monitor/lib/forever-monitor/monitor.js:142:7)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.<anonymous> (/usr/lib/node_modules/forever/node_modules/forever-monitor/lib/index.js:14:24)
at Module._compile (module.js:435:26)

"
Can anyone help on this what is the actual issue,how i can resolve this error.

like image 731
jahanzaib kk Avatar asked Oct 21 '15 13:10

jahanzaib kk


1 Answers

I have faced the same issue. It was due to using Redistore with "express" parameter

var RedisStore = require('connect-redis')(express); 

finally I fixed it using a session as parameter.

var session = require('express-session');
var RedisStore = require('connect-redis')(session);

Hope it helps you.

like image 149
movaction.com Avatar answered Sep 20 '22 03:09

movaction.com