이유 : body-parser 가 깔려있지 않아서
해결법
1. body-parser 설치
2.
app.use(express.json());
app.use(express.urlencoded( {extended : false } ));
추가
'NODE.JS' 카테고리의 다른 글
[Express] passport-local-mongoose 간단정리(React 연동) (0) | 2020.05.27 |
---|---|
[express] Clova Face Recognition 예제 (0) | 2020.05.04 |