tsconfig.json의 상호 참조 문제
문제상황
image.png
코드 구현을 시작하려고 보니 타입체킹이 진행이 안되고 있었다.
tsconfig에는 strict모드가 true인데 어째서 안되는지 확인해보니, 루트와 프론트엔드의 두 tsconfig가 references 속성으로 서로를 참조하고 있었기 때문이었다.
해결 방식
references는 상위 파일만 하위 파일을 지정해서 놓아주면 된다.
https://velog.io/@dev_jazziron/typeScript-tsconfig#composite
Subscribe to Liboo.blog
Get the latest posts delivered right to your inbox