아카이브

[TS] Could not find a declaration file for module '...' 해결하기 본문

Frontend

[TS] Could not find a declaration file for module '...' 해결하기

Rayi 2024. 12. 19. 22:10

해당 패키지를 설치한 후에도

 

Could not find a declaration file for module '패키지 이름'.

 

해당 오류가 발생한다면, 다음과 같이 타입이 정의된 패키지로 설치해야 합니다.

npm install @types/[패키지 이름] --save-dev
728x90
Comments