[Spring (sts) error] 메이븐 특정 라이브러리(jar)제거
2022. 7. 19. 06:50
개발/Error note
pom.xml 클릭 후 pom.xml 하단 dependency Hierarchy 클릭 충돌중인 항목 선택 후 마우스 우측 클릭 Exclude Maven Artifact 클릭 하고 클린하고 restart 하자 삭제하면 알아서 pom.xml 디펜던시에서도 지워짐 그리고 다시 maven 구해서 붙여넣기
[React Error] Uncaught TypeError: getDiaryAnalysis is not a function
2022. 7. 16. 08:39
개발/Error note
const getDiaryAnalysis = useMemo(() => { console.log("일기 분석 시작"); const goodCount = data.filter((it) => it.emotion >= 3).length; const badCount = data.length - goodCount; const goodRatio = (goodCount / data.length) * 100; return { goodCount, badCount, goodRatio } }, [data.length]); useMemo 사용 시 빈번하게 발생하는 오류 useMemo로 함수를 감싸고 dependency Array 를 전달 후 함수 최적화 하면 getDiaryAnalysis는 더이상 함수가아니다. 대신 useMe..
[React error] 콘솔에 결과값이 자꾸 두 번씩 출력될 때
2022. 7. 11. 21:06
개발/Error note
뭐야.. 싶어서 확인해보니 index.js에 App 컴포넌트를 React.StrictMode가 감싸고 있을경우 개발 오류를 잡기위해 두번씩 랜더링 된다고 함 쨔쟌
[React error] ...is not defined no-undef 에러 해결하기
2022. 7. 5. 21:00
개발/Error note
리액트 강의를 듣는데 갑자기 에러가 떴다 ...is not defined no-undef const DiaryList = ({diaryList}) => { console.log(diaryList); return ( 일기 리스트 {diaryList.length}개의 일기가 있습니다. {diaryList.map((it)=>( ))} ); }; 뭐지 뭐지 하고있는데..... 엄청 단순한 실수였다. 함수에 파라미터 값을 안주고 있었음 ㅎ
[Spring (sts) error ] 테스트 코드 실행 오류 java.lang.IllegalStateException: Failed to load ApplicationContext
2022. 7. 4. 06:17
개발/Error note
java.lang.IllegalStateException: Failed to load ApplicationContext @ContextConfiguration 안에 주소 입력안해줘서 생겼던 오류