🚨문제PrimeReact DataTable에서 *가상 스크롤(virtualScrollerOptions)*을 사용할 때,사이드바를 열고 특정 항목을 클릭하면 해당 인덱스로 잘 이동된다.하지만 사이드바를 닫았다가 다시 열면,화면이 맨 위로 올라갔다가 선택된 인덱스로 스크롤되는 문제가 발생했다. 👩🌾 원인 기존에는 사이드바 콘텐츠를 으로 숨기고 있었음display: none이 되면 내부 컴포넌트가 언마운트됨다시 열었을 때 새로 마운트되므로, 스크롤 위치가 초기화됨 →항상 1번부터 다시 렌더된 뒤 스크롤로 이동하는 버그 발생 ✒️ 해결 방법❌ 기존 방식display: active ? "flex" : "none"→ 렌더링 자체를 중단시켜 버리기 때문에 문제가 생김✅ 수정한 방식style={{ posit..
Another git process seems to be running in this repository, e.g. an editor opened by 'git commit'. Please make sure all processes are terminated then try again. If it still fails, a git process may have crashed in this repository earlier: remove the file manually to continue. Git이 저장소에서 다른 git 프로세스가 실행중인 것 같습니다. git 디렉토리 index.lock 파일 삭제 rm -f .git/index.lock 해결 완료 !
npm ERR! Missing script : "start" 대체로 많이들 하는 방법이 "scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject" start에 "node index.js"를 입력하라고 한다 하지만 난 이미 잘 입력되어있으니 될 리가 없고