Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app.configure is not a function #36

Open
simerjit-fwrk opened this issue May 15, 2017 · 3 comments
Open

app.configure is not a function #36

simerjit-fwrk opened this issue May 15, 2017 · 3 comments

Comments

@simerjit-fwrk
Copy link

Getting issue app.configure is not a function

@ToToSe
Copy link

ToToSe commented May 24, 2017

@simerjit-fwrk app.configure is deprecated in express 4

@praaatik
Copy link

praaatik commented Jun 27, 2020

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

@Manish270698
Copy link

Manish270698 commented Aug 24, 2020

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants