본문 바로가기

A.개발관련자료

(19)
[0]password authentication failed for user nestjs docker docker 동일 컨테이너 사용시 출현하는 nestjs error 기존 사용하는 컨테이너 볼륨이 있는지 확인(docker volume ls)후 있다면 기존 컨테이너를 실행시키고 있던 터미널에서 내려주고 (docker-compose down) 현 컨테이너를 실행하면 됌(docker-compose up)
[0][sql]스파르타sql 정리 //field : table 의 특정 분류값 //1주차 정리 1.show tables (cmd + enter : 실행) 로 필드 값 확인 2.select * from TableName 3. where fieldName = '조건' and/or '조건' *조건 : (문자열이 아닐경우 table이나 field로 인식함) *사칙연산 조건 : != (제외하고) *범위 조건 : between DATE and DATE *포함 조건 : where fieldName in (숫자들) *패턴 조건: -특정string을 포함하는 => where fieldName like '%특정string%' -규칙적인 string을 포함하는 =>ex) where fieldName = '김**' * 몇줄만 보고 싶을때 : limit *중복..
[0]WARNING: expo-cli has not yet been tested against Node.js v18.12.1. WARNING: expo-cli has not yet been tested against Node.js v18.12.1. If you encounter any issues, please report them to https://github.com/expo/expo-cli/issues expo-cli supports following Node.js versions: * >=12.13.0 =16.0.0 node 버전이 안맞아서 생기는 문제 node 삭제 후 16-17version으로 재설치 node 삭제 참고 : https://velog.io/@hrzo1617/Mac-node-npm-%EC%82%AD%EC%A0%9C-%EB%B0%8F-%EC%9E%AC%EC%84%A4%EC%B9%98 [Mac] - node,..
[0]the object notation for `createslice.extrareducers` is deprecated, and will be removed in rtk 2.0. please use the 'builder callback the object notation for `createslice.extrareducers` is deprecated, and will be removed in rtk 2.0. please use the 'builder callback, addcase cannot be called with two reducers for the same action type 와 같은 리덕스툴킷 에러가 뜨면 시도해봐야 할것 : extraReducer의 구조가 변경돼어 생기는 에러 인 것 같아, docs를 뒤져본 결과 하단과 같이 구조를 변경하면 제대로 작동하였다. //before extraReducer:{ // [getAllPosting.fulfilled]:(state,action) =>{ // state.status = ..
[0]react-dom.development.js:67 Warning: validateDOMNesting(...): Whitespace text nodes cannot appear as a child of <tbody>. Make sure you don't have any extra whitespace between tags on each line of your source code. => 이전부터 계속 해결하고 싶었던 에러이다. 계속 비슷한 상황이 반복되니 해결해야겠다 싶어 코드를 자세히 보면서 디버깅을 해보니, 위 에러인 즉슨 tbody안에 공백이 들어간다는 내용인 것 같았다. 나의 경우에는 화면을 띄워주는 return문안에서 삼항식 사용시 값이 없으면 빈값을 전달해서 생기는 오류로 보여졌다. 비슷한 경우의 분들이 계시면 table 내에서 삼항식 사용시 빈값을 부여하지 않았는지 확인해보시길 바란다. {tabName ==="aaa" && EachPage ? EachPage.map((data,idx)=>( )) : tabName ==="bbb"? EachPage.map((data,idx)=>( )) :"" ////////이부분이 에러의 원인이였음 !! }
[0][react]useEffect 함수실행, navigate , console.log is not working useEffect내에서 console.log가 찍히지 않을때 => 1.비동기함수가 더 빠르게 작동하지 않는지 체크해볼것 ! ! 2.return 하여 렌더링되는 페이지 안에 출력되야하는 결과물이 있는지 확인할것, (있다면 해당 결과물을 조건식으로 감쌀것 ) ///해결된 실행문 const [userInPage, setUserInPage] = useState(false) useEffect(() => { //1.user === "nouser"일때 navigate()으로 코드 짰는데, 비동기 함수가 더 빠르게 작동, //따라서 if 문의 순서를 바꾸었더니 작동함. if(user !== "nouser"){ setUserInPage(true) dispatch(fetchAllUsers()); dispatch(fetch..
[0]Warning: You provided a value prop to a form field without an onChange handler. This will render a read-only field. If the field should be mutable use defaultValue. Otherwise, set either onChange or readOnly. => input tag에 readOnly를 사용하거나, value를 defaultValue로 사용하도록 권장하는 warning 인것 같았다. 1.때문에 readOnly를 사용했더니 input 내 value를 수정할수가 없고, 2.defaultValue로 변경시 계속해서 비동기로 데이터 불러올때 초기 데이터값으로만 남아있었다. 때문에 비동기로 데이터를 불러올때 데이터 불러오기전 빈배열로 초기화 로직을 추가해서 해결하였다. const Book = () => { const [bookinfo, setBookinfo] = useState([]); const getInformation = (value) =>{ setBookInfo([]) axios.get( .. ) } return ( [...] {bookinfo...
[0]redux-toolkit unwrap 사용시 에러 =>Error: Actions must be plain objects. Use custom middleware for async actions. 비동기 불러오는 도중 unwrap 사용하는데, 다음과 같은 에러가 떴다. 생각보다 바보같은실수였다. slice내부 함수를 페이지내의 함수와 동일한 이름으로 호출하여 반복 호출되어 생긴 오류였다. 혹시라도 같은 실수를 한 분이 계시다면 네이밍을 한번더 살펴 보시길..!