반응형
에러 >>
yarn create next-app --typescript로 만든 앱에서 eslint 에러 발생
property 'classname' does not exist on type 'htmlprops'. did you mean 'classname'?
typescript적용 시 위와 같이 tsx 컴포넌트를 제대로 인식하지 못 함.
원인 >>
vsc바보
해결 >>
에러가 발생하는 컴포넌트 리턴 부분을 주석 처리 (또는 없앤) 후 vsc껐다 켜기 하니까 사라짐 ..
728x90
반응형
'개발' 카테고리의 다른 글
[not working] Next.js live reload (0) | 2021.09.14 |
---|---|
[Error] ESLint: Plugin "react" was conflicted between (0) | 2021.09.09 |
[Error] 'React' must be in scope when using JSX (0) | 2021.09.07 |