트러블슈팅
vite + react + typescript에서 svg를 React 컴포넌트로 import하는 방법
svg를 컴포넌트로 쓰려고 import하면 Cannot find module ... or its corresponding type declarations(ts2307)가 난다. vite-plugin-svgr 설치만으로는 부족하고 타입 선언까지 갖춰야 하는 이유와, 쿼리 접미사 대소문자가 왜 중요한지 정리한다.
#vite#react#typescript#svg#svgr#troubleshooting