Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialchrisshadrach
11,058 PointsDo we still need to use cookie-parser?
I know that we no longer need to install body-parser in newer version(s) of express, but is cookie-parse now built in or does it need to be installed still? Thanks.
2 Answers
Byron Injeeli
Full Stack JavaScript Techdegree Graduate 25,639 PointsHi chrisshadrach. On the Express documentation site, it looks like cookie-parser
still needs to be installed separately using the npm package. http://expressjs.com/en/resources/middleware/cookie-parser.html.
Trevor Maltbie
Full Stack JavaScript Techdegree Graduate 17,021 PointsWait, we don't need body-parser? I installed it...
kasu0270
Full Stack JavaScript Techdegree Student 10,071 PointsHi yes, unfortunatly it seems that body-parser is out of date. You can use:
app.use(express.urlencoded({ extended: false }));
instead.