I have this as configuration of my Express server
app.use(app.router); app.use(express.cookieParser()); app.use(express.session({ secret: \"keyboard cat\" }
Express 4, has build-in body parser. No need to install separate body-parser. So below will work:
export const app = express(); app.use(express.json());