본문 바로가기
728x90
728x90

React/error3

[error] react 설치 후 npm start 했을 때 -4058 에러코드 발생 회사에서 소셜 로그인 및 회원가입 라이브러리를 만들라고 해서 새로운 react 프로젝트를 생성 후 실행시키니,, npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\AppData\Local\npm-cache\_logs\2024-02-02T02_41_39_969Z-debug-0.log PS C:\SNS\module\react-kakao> npm start npm ERR! code ENOENT npm ERR! syscall open npm ERR! path C:\SNS\module\react-kakao/package.json npm ERR! errno -4058 npm ERR! enoent ENOENT: no such file or .. 2024. 2. 3.
[Warning] Warning: Each child in a list should have a unique "key" prop. 반복문을 사용한 부분에 key를 적용했는데도 이런 에러가 뜨고 있어서 확인해보니,,,!! [ 원인 ] { array?.map((item, i) => { return ( ); }) } 혹은 축약형 를 사용할 때 key를 부여해야 하는 경우도 있다. 만약 리스트 아이템을 묶는 에 key를 주어야 한다면, 직접 를 사용하고 여기에 key를 부여해야한다고 함. { array?.map((item, i) => { return ( ); }) } 2024. 1. 15.
[Warning] value prop on select should not be null. 개발진행하다가 콘솔에 warning 문구들을 하나씩 해결하던 중 Warning: value prop on select should not be null. Consider using an empty string to clear the component or undefined for uncontrolled components. [ 원인 ] - select에 사용하는 state 최초값을 null로 설정을 했더니 옵션에 없어서 남 ㅋㅋ *** 추가적으로 value prop on input should not be null. Consider using an empty string to clear the component or undefined for uncontrolled components. const [tes.. 2024. 1. 11.
728x90
728x90