오랜만에 리액트 프로젝트를 시작해볼까하고 "npx create-react-app 플젝이름"을 쳤더니 아래와 같은 오류가 계속 떴다.
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: board@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.
CRA github Readme에서 말해주는 3가지 시작 방법을 해봐도 모두 동일한 오류가 떨어졌다.

그래서 뭐지? 싶어서 스크롤을 조금 올려보니까 CRA에 deprecated되었다는 경고 문구가 적혀있었다. 무려 커밋한지 2주밖에 안된 따끈따끈한 소식이다.

내가 리액트 프로젝트를 시작할 때 요긴하게 잘 사용했던 기능이 deprecate되었단 소식을 듣고 충격아닌 충격을 받게 되어 글을 쓰게 되었다..
공식사이트에서는 이제 framework랑 꼭 같이 쓰라니,, 공부할 게 더 늘어난 느낌이네 ㅠ
잘가, CRA야..
'Frontend > React' 카테고리의 다른 글
[React] PM2를 활용한 EC2에 React 무중단 배포 (0) | 2024.10.13 |
---|