Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update peerDependencies to include React 18 #5133

Merged
merged 4 commits into from Apr 10, 2022
Merged

Update peerDependencies to include React 18 #5133

merged 4 commits into from Apr 10, 2022

Conversation

nil4
Copy link
Contributor

@nil4 nil4 commented Apr 3, 2022

React 18 was released: https://reactjs.org/blog/2022/03/29/react-v18.html

However using react 18 together with react-select v5.2.2 (latest version) breaks down with a dependency conflict:

> npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: app@0.0.0
npm ERR! Found: react@18.0.0
npm ERR! node_modules/react
npm ERR!   dev react@"^18.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0 || ^17.0.0" from react-select@5.2.2
npm ERR! node_modules/react-select
npm ERR!   dev react-select@"5.2.2" from the root project

This updates peerDependencies to allow react 18.

Hopefully helps fix #5129

React 18 was released: https://reactjs.org/blog/2022/03/29/react-v18.html

However using react 18 together with `react-select` v5.2.2 (latest version) breaks down with a dependency conflict:

```cmd
> npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: app@0.0.0
npm ERR! Found: react@18.0.0
npm ERR! node_modules/react
npm ERR!   dev react@"^18.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0 || ^17.0.0" from react-select@5.2.2
npm ERR! node_modules/react-select
npm ERR!   dev react-select@"5.2.2" from the root project
```
Update `peerDependencies` to allow react 18.
@changeset-bot
Copy link

changeset-bot bot commented Apr 3, 2022

🦋 Changeset detected

Latest commit: 741ea0d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
react-select Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codesandbox-ci
Copy link

codesandbox-ci bot commented Apr 3, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 741ea0d:

Sandbox Source
react-codesandboxer-example Configuration

@stevenle
Copy link

stevenle commented Apr 9, 2022

Any chance this could be submitted anytime soon?

@Rall3n Rall3n added this to the 5.3 milestone Apr 10, 2022
@Methuselah96 Methuselah96 merged commit c7d8d4b into JedWatson:master Apr 10, 2022
@github-actions github-actions bot mentioned this pull request Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update peerDependencies to include React 18
7 participants