app.configure is not a function
simerjit-fwrk opened this issue · comments
Getting issue app.configure is not a function
@simerjit-fwrk app.configure is deprecated in express 4
The below configuration would work
var app = express();
var flash = require('connect-flash');
app.use(flash());
Also, might want to have a look this link:
https://github.com/expressjs/express/wiki/Migrating-from-3.x-to-4.x#appconfigure
@praaatik I used your suggested way but now i am getting the following deprecation warnings when i start the server:
Mon, 24 Aug 2020 14:49:48 GMT express-session deprecated undefined resave option; provide resave option at app.js:31:9 Mon, 24 Aug 2020 14:49:48 GMT express-session deprecated undefined saveUninitialized option; provide saveUninitialized option at app.js:31:9 Mon, 24 Aug 2020 14:49:48 GMT express-session deprecated req.secret; provide secret option at app.js:31:9 Server started successfully