#1: 타입 패키지 미설치
The inferred type of '[Component Name]' cannot be named without a reference to '.pnpm/@types+react@18.2.52/node_modules/@types/react'. This is likely not portable. A type annotation is necessary.
패키지 package.json에 사용한 타입을 설치하지 않아서 생기는 문제.
나는 React 컴포넌트를 만들었는데, @types/react
를 설치하지 않아서 발생했다.
안내
해당 글은 '도다 Aha!'에서 이전된 글입니다. 이전 글과 달라진 부분이 있을 수 있습니다.
태그
모노레포
•
typescript
반응과 댓글 시스템은 Giscus에 의해 호스팅되며, 모든 대화는 GitHub에 저장됩니다.