본문 바로가기

React/ETC Error10

[TypeError] error - TypeError: Cannot read properties of undefined (reading 'fetchBoards') 문제상황 페이지 네이션 연습 중 다음과 같은 에러가 떴다. 브라우저상 에러 Server Error TypeError: Cannot read properties of undefined (reading 'fetchBoards') This error happened while generating the page. Any console logs will be displayed in the terminal window. 터미널 에러 error - TypeError: Cannot read properties of undefined (reading 'fetchBoards') undefined에 대한 속성을 읽을 수 없다고 한다. 해결 이유는 페치보드할 시에 값이 없을 수도 있는데 불러오려 그래서인듯 하다. 있을 수도.. 2022. 2. 7.
[eslint error] Expected blank line between class members.eslint(lines-between-class-members) 문제 상황 강의와 똑같이 코드를 쳤는데도 어째서인지 알 수 없는 빨간 줄 에러가 계속 났다. 한줄 한줄 문법을 따져봐도 틀린 것이 없는데 원인을 알 수 없었다. Expected blank line between class members. eslint(lines-between-class-members) 에러 문구는 위과 같았다. 해결 검색해보니 --fix 명령어로 해결 가능한 부분이라고 해서 npx eslint "**/*{ts,tsx}" --fix 로 해결봤다. 뭐가 바뀐건가 봤더니..... eslint에서 개행해달라고 빨간지렁이 냈던 것.................... . . . 에러 나면 일단 에러문구 잘 보고 구글링부터 해보자 ㅎㅎㅎ 2022. 2. 3.
[husky error] yarn : 이 시스템에서 스크립트를 실행할 수 없으므로 C:\Users\Jina Kim\AppData\Roaming\npm\yarn.ps1 파일을 로드할 수 없습니다. 자세한 내용은 about_Exe cution_Policies(https://go.microsoft.com/fwlink/?LinkI.. 문제 상황 yarn add husky@4 --dev 위 명령어로 허스키 4버전을 설치해보려는데 에러가 뜨면서 되지 않았다. yarn : 이 시스템에서 스크립트를 실행할 수 없으므로 C:\Users\Jina Kim\AppData\Roaming\npm\yarn.ps1 파일을 로드할 수 없습니다. 자세한 내용은 about_Exe cution_Policies(https://go.microsoft.com/fwlink/?LinkID=135170)를 참조하십시오. 위치 줄:1 문자:1 + yarn add husky@4 --dev + ~~~~ + CategoryInfo : 보안 오류: (:) [], PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess 문제.. 2022. 1. 30.
[eslint error] spaced-comment eslint를 실행했더니 맨아래 저런 문구가 터미널에 떴다. ✖ 22 problems (22 errors, 0 warnings) 19 errors and 0 warnings potentially fixable with the `--fix` option. 총 22개의 문제 중 --fix를 붙이면 고칠 수 있는 문제가 19개라고 한다. 대부분의 내 문제는 spaced-comment 였다. --fix 해보자. $ yarn run eslint "**/*{ts,tsx}" --fix 정말로 19개 문제가 해결되어 3개만 남았다. 굿. 2022. 1. 29.