300x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 클린코드
- 성능 베이스캠프
- 크로마틱
- react
- git hooks
- 유틸함수
- css instead of js
- 협업
- 우테코
- 프로젝트
- eslint에러 자동fix
- importOrder
- webpack
- Husky
- string-width
- 자바스크립트
- 클로저
- eslint 자동화
- storybook
- import정리
- vscode
- 프로젝트 카페인
- 이슈번호자동화
- prettier 자동화
- chromatic
- 카페인
- IDL attributes
- JavaScript
- 우아한테크코스
- CSS
Archives
- Today
- Total
FEB:)DAIN
[Parsing Error] 초기 세팅할때 Parsing error: Cannot read file '.../tsconfig.json' 에러가 발생했다면 본문
코딩/트러블 슈팅
[Parsing Error] 초기 세팅할때 Parsing error: Cannot read file '.../tsconfig.json' 에러가 발생했다면
얌2 2024. 4. 15. 21:32728x90
https://stackoverflow.com/questions/64933543/parsing-error-cannot-read-file-tsconfig-json-eslint
Parsing error: Cannot read file '.../tsconfig.json'.eslint
The error Parsing error: Cannot read file '.../tsconfig.json'.eslint shows in all .ts files in the src folder including index.ts. I have no idea how to set up configs. The issue just shows a red li...
stackoverflow.com
위 링크에 들어가면 Parsing error를 해결하는 여러가지 방법들이 나오는데,
나는 그 중 아래 두 가지 방법이 문제 해결에 도움이 되었다.
1)
// .eslintrc.js
extends: [ '...','@typescript-eslint/parser'],
2)
// .vscode/settings.json
{
"eslint.workingDirectories": [
{
"mode": "auto"
}
]
}
하지만 첫 번째 방법은 다른 사람의 코드에 영향을 주기에 .gitignore에 있는 .vscode 안 파일을 변경하는 두 번째 방법을 선택했다.
내가 선택한 두 번째 방법은 ESLint가 작업 디렉토리를 자동으로 결정하도록 설정하여 해결하는 방식이다. 이 설정을 사용하면 ESLint가 VS Code의 현재 작업 중인 파일이나 폴더의 위치를 기준으로 작업 디렉토리를 결정한다. 이는 ESLint가 적절한 프로젝트 환경에서 linting을 수행할 수 있도록 도와준다.
728x90
'코딩 > 트러블 슈팅' 카테고리의 다른 글
Manifest: Line: 1, column: 1, Syntax error (0) | 2023.09.11 |
---|---|
[스토리북 에러] var stringWidth = require('string-width') Error [ERR_REQUIRE_ESM] (0) | 2023.08.10 |
storybook에서 msw 사용하기 (1) | 2023.07.30 |
storybook에서 svg 오류 개선 (0) | 2023.07.25 |
git hooks(커밋 메시지에 이슈 번호 자동 입력)와 husky 충돌 개선 (0) | 2023.07.20 |