[React] vscode typescript 컴파일 에러
2024. 8. 13. 10:17ㆍ설치관련
Module not found: Error: Can't resolve
javascript는 문제가 없는데 typescript 사용시 빨간줄도 없는데 오류가 나온다.
해결 방법
typescript는 tsconfig.json 파일이 필수다.
없다면 수동으로 만들어주기
{
"compilerOptions": {
"jsx": "react",
"lib": ["ES2015", "dom"],
"module": "commonjs",
"outDir": "dist",
"esModuleInterop": true,
"sourceMap": true,
"strict": true,
"target": "ES2015"
},
"include": ["src"]
}
'설치관련' 카테고리의 다른 글
Apache POI 라이브러리 설치 (Dynamic Web Project 세팅) (2) | 2024.09.30 |
---|---|
[VSCode] VSCode 다운로드 및 초기 세팅 (0) | 2024.08.21 |
[React] VSCode 리엑트 설치, Typescript 개발 환경 설정 (0) | 2024.08.13 |
[React] create-react-app 프로젝트 생성 오류 (0) | 2024.08.06 |
Window10에서 WebLogic 12.2.1.2.0 설치하기 (0) | 2021.06.09 |