Could not find a declaration file for module 'react/jsx-runtime'. '.../node_modules/react/jsx-runtime.js' implicitly has an 'any' type.
와 같은 에러 발생시
yarn add @types/react -D 혹은 npm i --save-dev @types/react 를 통해 해결 가능.
'프론트엔드 기본개념 복습 > Typescript' 카테고리의 다른 글
[Typescript] String Union Type을 value로 사용하기 (0) | 2022.02.09 |
---|---|
[Typescript] Mapped Types & Utility Types (0) | 2022.02.02 |
[Typescript] Type alias vs Interface (0) | 2022.02.02 |
[Typescript] Intersection Type (0) | 2022.01.31 |
[Typescript] never 타입 (0) | 2022.01.31 |