react18-dep-compatibility
하는 일
이 도구는 다른 프로그래밍 라이브러리의 어떤 버전이 최신 React 버전(React 18과 19)과 함께 작동하는지 확인하도록 돕습니다. 모든 것이 함께 작동하기 위해 필요한 최소 버전을 보여 줍니다.
사용하는 경우
- ✓프로젝트를 React 18 또는 19로 업데이트할 때.
- ✓패키지를 설치하는 동안 '호환되지 않는 의존성' 오류가 나올 때.
- ✓--legacy-peer-deps 옵션을 쓸지 결정할 때.
스킬 링크
https://github.com/github/awesome-copilot/blob/main/skills/react18-dep-compatibility/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“React 19와 함께 작동하는 testing-library 버전은 무엇인가요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
도구는 React 버전을 다른 인기 라이브러리의 버전과 비교합니다. 각 조합에 대해 최소 호환 버전을 나열한 표를 참고합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
React Dependency Compatibility Matrix
Minimum versions required for React 18.3.1 and React 19 compatibility.
Use this skill whenever checking whether a dependency supports a target React version, resolving peer dependency conflicts, deciding whether to upgrade or use legacy-peer-deps, or assessing the risk of a react-router v5 to v6 migration.
Review this matrix before running npm install during a React upgrade and before accepting an npm dependency conflict resolution, especially where concurrent mode compatibility may be affected.
Core Upgrade Targets
| Package | React 17 (current) | React 18.3.1 (min) | React 19 (min) | Notes |
|---|---|---|---|---|
react |
17.x | 18.3.1 | 19.0.0 | Pin exactly to 18.3.1 for the R18 orchestra |
react-dom |
17.x | 18.3.1 | 19.0.0 | Must match react version exactly |
Testing Libraries
| Package | React 18 Min | React 19 Min | Notes |
|---|---|---|---|
@testing-library/react |
14.0.0 | 16.0.0 | RTL 13 uses ReactDOM.render internally - broken in R18 |
@testing-library/jest-dom |
6.0.0 | 6.0.0 | v5 works but v6 has React 18 matcher updates |
@testing-library/user-event |
14.0.0 | 14.0.0 | v13 is sync, v14 is async - API change required |
jest |
27.x | 27.x | jest 27+ with jsdom 16+ for React 18 |
jest-environment-jsdom |
27.x | 27.x | Must match jest version |
Apollo Client
| Package | React 18 Min | React 19 Min | Notes |
|---|---|---|---|
@apollo/client |
3.8.0 | 3.11.0 | 3.8 adds useSyncExternalStore for concurrent mode |
graphql |
15.x | 16.x | Apollo 3.8+ peer requires graphql 15 or 16 |
Read references/apollo-details.md for concurrent mode issues and MockedProvider changes.
Emotion
| Package | React 18 Min | React 19 Min | Notes |
|---|---|---|---|
@emotion/react |
11.10.0 | 11.13.0 | 11.10 adds React 18 concurrent mode support |
@emotion/styled |
11.10.0 | 11.13.0 | Must match @emotion/react version |
@emotion/cache |
11.10.0 | 11.13.0 | If used directly |
React Router
| Package | React 18 Min | React 19 Min | Notes |
|---|---|---|---|
react-router-dom |
v6.0.0 | v6.8.0 | v5 → v6 is a breaking migration - see details below |
react-router-dom v5 |
5.3.4 (workaround) | ❌ Not supported | See legacy peer deps note |
react-router v5 → v6 is a SEPARATE migration sprint. Read references/router-migration.md.
Redux
| Package | React 18 Min | React 19 Min | Notes |
|---|---|---|---|
react-redux |
8.0.0 | 9.0.0 | v7 works on R18 legacy root only - breaks on concurrent mode |
redux |
4.x | 5.x | Redux itself is framework-agnostic - react-redux version matters |
@reduxjs/toolkit |
1.9.0 | 2.0.0 | RTK 1.9 tested against React 18 |
Other Common Packages
| Package | React 18 Min | React 19 Min | Notes |
|---|---|---|---|
react-query / @tanstack/react-query |
4.0.0 | 5.0.0 | v3 doesn't support concurrent mode |
react-hook-form |
7.0.0 | 7.43.0 | v6 has concurrent mode issues |
formik |
2.2.9 | 2.4.0 | v2.2.9 patched for React 18 |
react-select |
5.0.0 | 5.8.0 | v4 has peer dep conflicts with R18 |
react-datepicker |
4.8.0 | 6.0.0 | v4.8+ added React 18 support |
react-dnd |
16.0.0 | 16.0.0 | v15 and below have R18 concurrent mode issues |
prop-types |
any | any | Standalone - unaffected by React version |
Conflict Resolution Decision Tree
npm ls shows peer conflict for package X
│
▼
Does package X have a version that supports React 18?
YES → npm install X@[min-compatible-version]
NO ↓
│
Is the package critical to the app?
YES → check GitHub issues for React 18 branch/fork
→ check if maintainer has a PR open
→ last resort: --legacy-peer-deps (document why)
NO → consider removing the package
--legacy-peer-deps Rules
Only use --legacy-peer-deps when:
- The package has no React 18 compatible release
- The package is actively maintained (not abandoned)
- The conflict is only a peer dep declaration mismatch (not actual API incompatibility)
Document every --legacy-peer-deps usage in a comment at the top of package.json or in a MIGRATION.md file explaining why it was necessary.
자주 묻는 질문
'피어 의존성(peer dependencies)'은 무엇인가요?
코드가 필요로 하는 패키지이지만, 사용 중인 다른 라이브러리도 요구하는 패키지입니다. 버전이 맞지 않으면 오류를 일으킬 수 있습니다.
--legacy-peer-deps는 무엇인가요?
호환되지 않는 의존성이 있어도 강제로 설치하는 명령 옵션입니다. 문제를 일으킬 수 있으므로 신중하게 써야 합니다.
React Router 버전을 왜 신경 써야 하나요?
React Router를 5에서 6으로 업그레이드하는 것은 큰 변경이며, React 18이나 19와 호환되도록 특별한 주의가 필요합니다.
상세 정보
인기도
- GitHub 스타
- 40k
- 순위
- #7384
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
acquire-codebase-knowledge
40k에이전트가 기존 코드 프로젝트를 이해하고 문서화하도록 돕습니다. 새 구성원을 맞이하거나 아키텍처를 개괄적으로 파악할 때 유용합니다.
acreadiness-assess
40k에이전트가 프로젝트의 AI 준비 상태를 평가하고 보고서를 만들도록 합니다. 프로젝트가 AI 도구를 쓸 준비가 얼마나 되어 있는지 이해하는 데 유용합니다.
acreadiness-generate-instructions
40k에이전트가 평가 결과를 바탕으로 AI 도구를 위한 지침을 만들도록 돕습니다. AI가 코드와 상호작용하는 방식을 개선하고 확인된 공백을 메울 때 유용합니다.
acreadiness-policy
40k에이전트가 AI 프로젝트 평가를 위한 정책을 정의하거나 적용하도록 돕습니다. 프로젝트 평가 방식을 표준화하고 규정 준수를 보장할 때 유용합니다.
비슷한 스킬
angular-developer
280k에이전트가 Angular 코드를 만들고 프로젝트 구조를 조언하도록 돕습니다. 새 프로젝트 시작, 코드 부분 생성, 성능과 접근성 개선에 유용합니다.
frontend-a11y
280k모든 사람이 웹 인터페이스를 쓸 수 있도록 에이전트를 돕습니다. 웹사이트와 앱이 화면 읽기 프로그램과 키보드 탐색에서 잘 작동하도록 합니다.
frontend-patterns
280k프론트엔드 개발의 현대적인 패턴을 적용하도록 에이전트를 돕습니다. React와 Next.js에서 성능을 최적화하고, 상태를 관리하며, 모범 사례를 따릅니다.