본문 바로가기 메뉴 바로가기

documenting and archiving

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

documenting and archiving

검색하기 폼
  • 분류 전체보기 (72)
    • 개발 (71)
      • react (11)
      • react-native (11)
      • javascript (14)
      • typescript (1)
      • css (9)
      • vue (1)
      • etc (23)
      • TIL (1)
  • 방명록

개발/typescript (1)
[TypeScript] 타입스크립트 오류 - Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy.

tsconfig.json의 "moduleResolution": "bundler" 에서Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy. 라는 오류가 계속 발생했다.그런데 같은 프로젝트를 작업하는 다른 사람들은 이 오류가 없고,나만 이 오류가 뜨고 있어서 해결법을 찾아보았다. 원인은 vscode에서 타입스크립트의 버전을 해당 프로젝트의 버전으로 사용하지 않아서 생긴 문제였다. 먼저 cmd(ctrl) + shift + p를 입력하거나 Command Palette를 열어서,Select Typescript Version을 선택해준다. 그러면 이렇게 vscode의 버전을 사용할 것인지, 워크스페이스..

개발/typescript 2025. 4. 16. 19:20
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
250x250

Blog is powered by Tistory / Designed by Tistory

티스토리툴바