• 로그인
  • 장바구니에 상품이 없습니다.

home2 게시판 Node.js, Express 게시판 bodyparser 취소선 그어진거 문제

bodyparser 취소선 그어진거 문제

2 글 보임 - 1 에서 2 까지 (총 2 중에서)
  • 글쓴이
  • #7094

    황유정
    참가자

    요청을 받아오기 위해서 작성하는

    const bodyParser = require('body-parser');

    app.use(bodyParser.urlencoded({extended : true})

    위 코드에서 2번째 줄 bodyParser에 취소선이 그어져있으며 마우스enter시 

    (alias) function bodyParser(options?: bodyParser.OptionsJson & bodyParser.OptionsText & bodyParser.OptionsUrlencoded): NextHandleFunction
    (alias) namespace bodyParser
    import bodyParser
    @deprecated
    'bodyParser'은(는) 더 이상 사용되지 않습니다.ts(6385)index.d.ts(19, 5): The declaration was marked as deprecated here.

    이런 경고? 안내? 같은게 표시됩니다.

    무시하고 해도되나요?

    #7097

    codingapple
    키 마스터

    넴 bodyparser가 express 특정버전 이후부터 기본 포함이라 그런 것 같은데 

    아마 app.use(express.urlencoded({ extended: true })) 이걸로 바꾸셔도 똑같습니다 

2 글 보임 - 1 에서 2 까지 (총 2 중에서)
  • 답변은 로그인 후 가능합니다.

About

현재 월 700명 신규수강중입니다.

  (09:00~20:00) 빠른 상담은 카톡 플러스친구 코딩애플 (링크)
  admin@codingapple.com
  이용약관
ⓒ Codingapple, 강의 예제, 영상 복제 금지
top

© Codingapple, All rights reserved. 슈퍼로켓 에듀케이션 / 서울특별시 강동구 고덕로 19길 30 / 사업자등록번호 : 212-26-14752 온라인 교육학원업 / 통신판매업신고번호 : 제 2017-서울강동-0002 호 / 개인정보관리자 : 박종흠