드디어 TypeScript의 세계로 발을 들여놓았다.
TypeScript의 편안함을 알기 전에 호환하는 라이브러리 에러 잡느라 바쁘다 바빠
Could not find a declaration file for module 'react-router-dom'.
react router dom을 사용하려고 설치하니
위와 같은 문장이 나왔다.
$ npm i --save-dev @types/react-router-dom
강의에선 react-router-dom의 모듈을 설치하면 된다고 들었으나....
여전히 에러가 발생했다.
$ npm install --save @types/react @types/react-dom
구글링 후 위의 명령어를 이용해 react와 react-dom의 타입도 재설치 해주어 문제를 해결했다.