불과 몇일전에 react 개발환경 설정했다가.
오늘 신규 프로젝트 생성하는데 아래와 같은 에러가 발생하네요
얼마전 react 버전업 (18 ->19) 하며 나는 오류라는데
저 같은 경우에는 프로젝트 생성시 뒤에 --legacy-peer-deps 옵션도 넣어보고
npm install --force
npm install --legacy-peer-deps
위처럼 해봐도 안되서
결국 돌아는 가는게
> npm install web-vitals
를 해보니 돌아는 가네요.
근본적 해결방법은 react 버전업인 것 같지만.
저 처럼 빠르게 해결보고 싶으신 분은 위 방법을 추천합니다.
---------------------------------------------------------------------------
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: shop@0.1.0
npm error Found: react@19.0.0
npm error node_modules/react
npm error react@"^19.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer react@"^18.0.0" from @testing-library/react@13.4.0
npm error node_modules/@testing-library/react
npm error @testing-library/react@"^13.0.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error C:\Users\RnL\AppData\Local\npm-cache\_logs24-12-12T01_58_57_489Z-eresolve-report.txt
npm error A complete log of this run can be found in: C:\Users\RnL\AppData\Local\npm-cache\_logs24-12-12T01_58_57_489Z-debug-0.log