- 에러 메시지
File name Module1.js differs from already included file name module1.js only in casing.
The file is in the program because:
Root file specified for compilation
Imported via Module1.js from file main.js ts(1149)
- 증상 : 파일 이름을 바꾸면 에러 메시지 발생 안함
- 해결방법1
ts(1149) 에러 경고 끄기 : "forceConsistentCasingInFileNames": false 설정
- "jsconfig.json" (or "tsconfig.json" ) 파일 수정(프로젝트 루트에 위치)
{
"compilerOptions": {
"forceConsistentCasingInFileNames": false
}
}
//-------------------------------------
// 참고
- 해결 방법2
Module1.js 이름을 다른 이름으로 바꿨다가 다시 복구 시킨다.
//-------------------------------------
참고
https://stackoverflow.com/questions/51197940/file-name-differs-from-already-included-file-name-only-in-casing-on-relative-p
'Code' 카테고리의 다른 글
vscode 이전 버전 다운로드 방법 (0) | 2024.03.01 |
---|---|
composer, npm 의 update 와 install 의 차이 (0) | 2024.02.23 |
nginx 성능 설정 (0) | 2023.12.29 |
함수 - parameter, argument 용어 구분 (0) | 2023.11.24 |
[git] 원격 서버(github)에 push한 커밋 취소 방법 (0) | 2023.11.04 |