728x90
๊ธฐ์กด ํ๋ก์ ํธ์ ์ฌ๋ผ์ด๋๋ฅผ ๋ง๋๋ ค๊ณ ์๋.
swiper ์จ์ผ๋๋๋ฐ ์๊พธ ์๋ฌ๊ฐ ๋ฌ๋ค
Error : TS2307: Cannot find module 'swiper' or its corresponding type declarations.
ํด๊ฒฐ ๋ฐฉ๋ฒ
1. npm i @types/swiper ์ค์น
2. tsconfig.json ํ์ผ์ types๋ฅผ ์ถ๊ฐํ๋ค.
{
"compilerOptions": {
"types": ["react-transition-group"], // ์ด๊ฑฐ ์ถ๊ฐํ๋ ์๋ฌ๊ฐ ์ฌ๋ผ์ง
...
}
}
728x90