본문 바로가기

오류처리

(22)
크롬 콘솔창 먹통일때 초기화 출처: https://codingcoding.tistory.com/365
[Nest] 18717 - 2022. 02. 06. 오후 8:32:04 ERROR [ExceptionsHandler] Cannot destructure property 'title' of 'createBoardDto' as it is undefined.TypeError: Cannot destructure property 'title' of 'createBoardDto' as it is undefined. [Nest] 18717 - 2022. 02. 06. 오후 8:32:04 ERROR [ExceptionsHandler] Cannot destructure property 'title' of 'createBoardDto' as it is undefined. TypeError: Cannot destructure property 'title' of 'createBoardDto' as it is undefined. 다음과 같은 에러가 뜰경우 controller에서 전송되는 데이터(Body)가 전송되는지 확인해봐야한다.
VS Code 이 시스템에서 스크립트를 실행할 수 없으므로(window) window power shell 우측클릭(관리자 권한으로 실행 > Set-ExecutionPolicy RemoteSigned > [A] 모두 예 > Get-ExecutionPolicy //RemoteSigned 출처: https://jy-tblog.tistory.com/8 [jy.log]
pgadmin unable to connect to server: PG admin에서 위와 같은 문구가 뜰 경우 ! 최초 설정한 비밀번호와 server 설치시 입력하는 비밀번호가 일치하는지 확인, postgreSQL 만 다운로드 한 것인지 확인( 본인은 잘 몰라서 pg admin도 같이 설치했는데, 알고보니 postgreSQL 내에 pg admin도 설치가 가능하여, 중복설치 되어 에러날 경우도 있을 것 같아 지우고 다시 다운로드)
[NESTjs]vscode Delete eslint (prettier/prettier)오류 //.eslntrc.js 에서 해당 내용추가 rules: { 'prettier/prettier': [ 'error', { endOfLine: 'auto', }, ], },
kakao login {"error":"unauthorized","error_description":"unauthorized - unregistered website domain"} {"error":"unauthorized","error_description":"unauthorized - unregistered website domain"} kakao 로그인시 위와 같은 에러가 떴다면 kakao developer 에서 도메인 주소 확인해볼것 !
Error: input is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`. Error: input is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`. - input 등과 같이 자식을 가질 수 없는 태그에 자식을 넣었을 때 발생하는 에러이다. - 안에 값을 제거해준다.
useSelector로 넘긴 데이터를 map,filter 적용가능하게 하기(filter에 async 먹이기) 프로젝트에서 redux-saga를 써서 비동기 데이터를 다뤄야하는데 ㅠㅠ useSelector로 가져온 데이터를 가지고 map 함수를 돌리자 ~~is not iterable 이라는 경고와 undefined여서 map 을 사용하지 못한다는 경고가 계속 떴다. 처음엔 배열이 아니면 적용이 안되는건가?싶어(말도안되는 말이지만) 하루종일 콘솔로 typeof만 찍어봤다... 문제는 싱크가 안맞아서 데이터를 못받는 것이였고, 해결방안은 map,filter 함수에 async를 먹이는 것이였고 try catch 구문으로 아래와 같이 만들어보았다. useSelector와 useDispatch는 따로 만들어둔 saga와 reducer에서 가져온 데이터와 리듀서 함수를 적용시킨 것이고 최하단 리턴구문 안의 className..