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

Change peer dependency for React #1074

Merged
merged 1 commit into from
Jun 19, 2023
Merged

Conversation

EricImpact
Copy link
Contributor

Use React 18.0.0 or any version greater as a peer dependency.

What is the purpose of this pull request? (put an "X" next to item)

[ ] Documentation update
[ ] Bug fix
[ ] New feature
[ X ] Other, please explain:

What changes did you make? (Give an overview)

In package.json I changed the peer dependency for React to be >= 18.0.0 to allow for newer versions of React.

Which issue (if any) does this pull request address?

If you try to install Next Translate with npm install next-translate while having React already added as a dependency with the latest version (18.2.0), installation fails because the dependency tree cannot be resolved. It also happens if you are using Next 13.4.3, which has a React dependency of ^18.2.0.

Is there anything you'd like reviewers to focus on?

Test the current package.json with React 18.2.0 or Next 13.4.3 as an existing dependency.

Use React 18.0.0 or any version greater as a peer dependency.
@abriginets
Copy link

Good job opening the PR so quickly. I was just about to create an issue.

For the reference, the change that broke down peerdeps
c04be1a#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L95

@aralroca
Copy link
Owner

Thanks for the fix

@aralroca aralroca merged commit 5c25cce into aralroca:master Jun 19, 2023
@EricImpact EricImpact deleted the patch-1 branch June 19, 2023 06:08
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.

3 participants