-
Notifications
You must be signed in to change notification settings - Fork 595
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
body-parser deprecated/body-parser deprecated undefined extended #37
Comments
This solution worked for me (after using npm to install body-parser). It's an edit to line 28 of app.js. |
use "app.use(bodyParser.urlencoded({ extended: true }));" instead of "app.use(bodyParser.urlencoded()" |
Anyone installing recently also needs to remove errorHandler = require('error-handler'). I did the things mentioned above and removed error-handler from the package.json and app.js file and was fine. |
I just recently installed bodyparser and I used ..and I was good to go. |
I'm having the same error and app.use(bodyParser.urlencoded({ limit: '5mb', extended: true })); is not working |
Use app.use(express.urlencoded()); |
The bodyParser constructor has been deprecated.
Console message:
body-parser deprecated bodyParser: use individual json/urlencoded middlewares app.js:28:9
body-parser deprecated undefined extended: provide extended option node_modules/body-parser/index.js:85:29
The text was updated successfully, but these errors were encountered: