본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)40k · #7384

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/github/awesome-copilot/blob/main/skills/react18-dep-compatibility/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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와 호환되도록 특별한 주의가 필요합니다.

상세 정보

작성자의 원본 설명

React 18.3.1 and React 19 dependency compatibility matrix.

repo: github/awesome-copilot

인기도

GitHub 스타
40k
순위
#7384
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬