[Solved] "can not read file tsconfig.json"

2022. 10. 9. 17:14· 개발환경

이 에러메시지는 eslintrc.js의 parserOption이 제대로 설정되지 않아서 생기는 문제이다.

 

 

// .eslintrc.js
  parser: '@typescript-eslint/parser',
  parserOptions: {
    project: 'tsconfig.json',
    tsconfigRootDir: __dirname,
    sourceType: 'module',
  },

 

위 처럼 설정을 해주면 정상적으로 작동한다.

나의 경우, tsconfigRootDir이 설정되어 있지 않았다.

저작자표시 (새창열림)

'개발환경' 카테고리의 다른 글

[Node] node, npm version 변경 안될 때, 업데이트 하는 방법  (0) 2023.05.13
node, npm 버젼 변경  (0) 2023.01.30
[Solved] vscode code 명령어 사라짐 현상 (command not found: code)  (0) 2022.10.09
[Solved]Bitbucket Cloud recently stopped supporting account passwords for Git authentication. (ssh키 설정하기, app 비밀번호 설정, git remote 추가 삭제)  (0) 2022.07.27
visual studio code 저장시 자동 format 설정(formatOnSave)  (0) 2022.07.06
'개발환경' 카테고리의 다른 글
  • [Node] node, npm version 변경 안될 때, 업데이트 하는 방법
  • node, npm 버젼 변경
  • [Solved] vscode code 명령어 사라짐 현상 (command not found: code)
  • [Solved]Bitbucket Cloud recently stopped supporting account passwords for Git authentication. (ssh키 설정하기, app 비밀번호 설정, git remote 추가 삭제)
moyanglee
moyanglee
moyangmoyanglee 님의 블로그입니다.
moyanglee
moyang
moyanglee
전체
오늘
어제
  • 전체보기 (173)
    • java,springboot (22)
    • CI CD (8)
    • 보안 (1)
    • Vue (21)
    • TypeScript (14)
    • SQL (2)
    • Docker (11)
    • JavaScript (17)
    • React (3)
    • NextJS (14)
    • d3 (2)
    • Git (3)
    • network (2)
    • Openlayers (4)
    • 테스트코드 (5)
    • NestJS (9)
    • 개발환경 (7)
    • Algorithm (6)
    • TypeORM (5)
    • CSS (7)
    • MySQL (5)
    • Linux (5)

블로그 메뉴

  • 홈
  • 방명록

공지사항

  • 현재 노션의 내용을 블로그로 옮기는 과정에 있습니다.
  • github, notion 링크

인기 글

태그

  • d3
  • OpenLayers
  • no space left on device
  • Error: P1001
  • springboot
  • Error: P1001: Can't reach database server at
  • AWS
  • object
  • js
  • npm 버전 변경
  • OOP
  • Uncaught (in promise) Error: Redirected when going from
  • node 버전 변경
  • vue
  • nextjs
  • Migration
  • typeorm
  • java
  • jest
  • useRef
  • Entity
  • mysql
  • react
  • ts
  • vue3
  • r2dbc
  • generic
  • typescript
  • NestJS
  • Docker

최근 댓글

최근 글

hELLO · Designed By 정상우.v4.2.0
moyanglee
[Solved] "can not read file tsconfig.json"
상단으로

티스토리툴바

단축키

내 블로그

내 블로그 - 관리자 홈 전환
Q
Q
새 글 쓰기
W
W

블로그 게시글

글 수정 (권한 있는 경우)
E
E
댓글 영역으로 이동
C
C

모든 영역

이 페이지의 URL 복사
S
S
맨 위로 이동
T
T
티스토리 홈 이동
H
H
단축키 안내
Shift + /
⇧ + /

* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.