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

home2 게시판 JavaScript, TS 게시판 타입스크립트 tsc -w 시 에러

타입스크립트 tsc -w 시 에러

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

    tngkrdjfudnj
    참가자

    [오후 3:02:33] Starting compilation in watch mode...

    ../node_modules/@types/eslint-scope/node_modules/@types/eslint/helpers.d.ts:1:6 - error TS2300: Duplicate identifier 'Prepend'.

    1 type Prepend<Tuple extends any[], Addend> = ((_: Addend, ..._1: Tuple) => any) extends (..._: infer Result) => any
    ~~~~~~~

    ../node_modules/@types/eslint/helpers.d.ts:1:6
    1 type Prepend<Tuple extends any[], Addend> = ((_: Addend, ..._1: Tuple) => any) extends (..._: infer Result) => any
    ~~~~~~~
    'Prepend' was also declared here.

    ../node_modules/@types/eslint/helpers.d.ts:1:6 - error TS2300: Duplicate identifier 'Prepend'.

    1 type Prepend<Tuple extends any[], Addend> = ((_: Addend, ..._1: Tuple) => any) extends (..._: infer Result) => any
    ~~~~~~~

    ../node_modules/@types/eslint-scope/node_modules/@types/eslint/helpers.d.ts:1:6
    1 type Prepend<Tuple extends any[], Addend> = ((_: Addend, ..._1: Tuple) => any) extends (..._: infer Result) => any
    ~~~~~~~
    'Prepend' was also declared here.

    [오후 3:02:39] Found 2 errors. Watching for file changes.

     

    이틀 전까지는 잘 됐는데 갑자기 이러네요 ..

    검색해봐도 잘 모르겠는데

    어떻게 해결하나요?

    #33233

    codingapple
    키 마스터

    프로젝트에서 쓰는 eslint 라는 라이브러리가 이상한것이라 프로젝트 재설치하거나 그래야합니다 

    https://stackoverflow.com/a/60090933 아니면 이것처럼 "skipLibCheck": 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 호 / 개인정보관리자 : 박종흠